fix looping in sliproad handler for lanes

This commit is contained in:
Moritz Kobitzsch
2016-09-12 10:08:01 +02:00
parent e3c1b133bf
commit b3c5a9c010
3 changed files with 17 additions and 4 deletions
+2 -1
View File
@@ -235,7 +235,8 @@ util::json::Object makeRouteStep(guidance::RouteStep step, util::json::Value geo
route_step.values["distance"] = std::round(step.distance * 10) / 10.;
route_step.values["duration"] = std::round(step.duration * 10) / 10.;
route_step.values["name"] = std::move(step.name);
if (!step.ref.empty()) route_step.values["ref"] = std::move(step.ref);
if (!step.ref.empty())
route_step.values["ref"] = std::move(step.ref);
if (!step.pronunciation.empty())
route_step.values["pronunciation"] = std::move(step.pronunciation);
if (!step.destinations.empty())