Fixes issue #202
This commit is contained in:
parent
2549f7254a
commit
e4080aba05
@ -135,7 +135,7 @@ public:
|
||||
if(segment.necessary)
|
||||
++prefixSumOfNecessarySegments;
|
||||
}
|
||||
|
||||
if(durationOfTrip != INT_MAX) {
|
||||
reply.content += ",[\"";
|
||||
reply.content += TurnInstructions.TurnStrings[TurnInstructions.ReachedYourDestination];
|
||||
reply.content += "\",\"";
|
||||
@ -152,6 +152,7 @@ public:
|
||||
reply.content += "\",";
|
||||
reply.content += "0.0";
|
||||
reply.content += "]";
|
||||
}
|
||||
} else {
|
||||
BOOST_FOREACH(const SegmentInformation & segment, descriptionFactory.pathDescription) {
|
||||
short currentInstruction = segment.turnInstruction & TurnInstructions.InverseAccessRestrictionFlag;
|
||||
@ -159,7 +160,7 @@ public:
|
||||
}
|
||||
}
|
||||
reply.content += "],";
|
||||
// INFO("Entered " << numberOfEnteredRestrictedAreas << " restricted areas");
|
||||
// INFO("Entered " << numberOfEnteredRestrictedAreas << " restricted areas");
|
||||
descriptionFactory.BuildRouteSummary(descriptionFactory.entireLength, durationOfTrip - ( numberOfEnteredRestrictedAreas*TurnInstructions.AccessRestrictionPenaly));
|
||||
|
||||
reply.content += "\"route_summary\": {"
|
||||
|
Loading…
Reference in New Issue
Block a user