handle all our new strings correctly, introduce rotary_pronunciation

This commit is contained in:
Moritz Kobitzsch
2016-09-07 15:51:14 +02:00
parent 9123c93a90
commit 938dff011f
7 changed files with 72 additions and 19 deletions
+6
View File
@@ -240,7 +240,13 @@ util::json::Object makeRouteStep(guidance::RouteStep step, util::json::Value geo
if (!step.destinations.empty())
route_step.values["destinations"] = std::move(step.destinations);
if (!step.rotary_name.empty())
{
route_step.values["rotary_name"] = std::move(step.rotary_name);
if (!step.rotary_pronunciation.empty())
{
route_step.values["rotary_pronunciation"] = std::move(step.rotary_pronunciation);
}
}
route_step.values["mode"] = detail::modeToString(std::move(step.mode));
route_step.values["maneuver"] = makeStepManeuver(std::move(step.maneuver));