return name and reference separately
This commit is contained in:
committed by
Moritz Kobitzsch
parent
938dff011f
commit
dcc1b5ab2b
@@ -235,6 +235,7 @@ 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.pronunciation.empty())
|
||||
route_step.values["pronunciation"] = std::move(step.pronunciation);
|
||||
if (!step.destinations.empty())
|
||||
|
||||
@@ -52,6 +52,8 @@ inline void forwardStepSignage(RouteStep &destination, const RouteStep &origin)
|
||||
destination.name = origin.name;
|
||||
destination.pronunciation = origin.pronunciation;
|
||||
destination.destinations = origin.destinations;
|
||||
destination.destinations = origin.destinations;
|
||||
destination.ref = origin.ref;
|
||||
}
|
||||
|
||||
inline bool choiceless(const RouteStep &step, const RouteStep &previous)
|
||||
|
||||
Reference in New Issue
Block a user