syncronize geometry and steps after post-processing

This commit is contained in:
Moritz Kobitzsch
2016-03-23 10:41:28 +01:00
committed by Patrick Niklaus
parent 2472c5d6a1
commit 51a4cf5e46
5 changed files with 41 additions and 9 deletions
+4 -4
View File
@@ -150,10 +150,10 @@ util::json::Object makeStepManeuver(const guidance::StepManeuver &maneuver)
if (maneuver.exit != 0)
step_maneuver.values["exit"] = maneuver.exit;
//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.intersections.empty() && maneuver.exit == 0 )
// 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.intersections.empty() && maneuver.exit == 0)
step_maneuver.values["exit"] = maneuver.intersections.size();
return step_maneuver;
}