added list of intersections to the step-maneuver, not in api so far
This commit is contained in:
committed by
Patrick Niklaus
parent
59fbb289b9
commit
2472c5d6a1
@@ -153,8 +153,8 @@ util::json::Object makeStepManeuver(const guidance::StepManeuver &maneuver)
|
||||
//TODO currently we need this to comply with the api.
|
||||
//We should move this to an additional entry, the moment we
|
||||
//actually compute the correct locations of the intersections
|
||||
if (maneuver.intersection != 0 && maneuver.exit == 0 )
|
||||
step_maneuver.values["exit"] = maneuver.intersection;
|
||||
if (!maneuver.intersections.empty() && maneuver.exit == 0 )
|
||||
step_maneuver.values["exit"] = maneuver.intersections.size();
|
||||
return step_maneuver;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user