relative waypoint locations

This commit is contained in:
Moritz Kobitzsch
2016-02-25 10:01:16 +01:00
committed by Patrick Niklaus
parent 482e18ccdb
commit 6605f293b4
8 changed files with 79 additions and 29 deletions
+3 -2
View File
@@ -100,8 +100,9 @@ util::json::Object makeStepManeuver(const guidance::StepManeuver &maneuver)
{
util::json::Object step_maneuver;
step_maneuver.values["type"] = detail::instructionTypeToString(maneuver.instruction.type);
step_maneuver.values["modifier"] =
detail::instructionModifierToString(maneuver.instruction.direction_modifier);
if( isValidModifier( maneuver.instruction.type, maneuver.instruction.direction_modifier )
step_maneuver.values["modifier"] =
detail::instructionModifierToString(maneuver.instruction.direction_modifier);
step_maneuver.values["location"] = detail::coordinateToLonLat(maneuver.location);
step_maneuver.values["bearing_before"] = maneuver.bearing_before;
step_maneuver.values["bearing_after"] = maneuver.bearing_after;