added list of intersections to the step-maneuver, not in api so far

This commit is contained in:
Moritz Kobitzsch
2016-03-22 14:17:17 +01:00
committed by Patrick Niklaus
parent 59fbb289b9
commit 2472c5d6a1
5 changed files with 200 additions and 142 deletions
+2 -2
View File
@@ -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;
}