Fix formatting
This commit is contained in:
parent
26f0b4dc77
commit
a7f1cd36fb
@ -89,9 +89,9 @@ class RouteAPI : public BaseAPI
|
|||||||
util::json::Array annotations_store;
|
util::json::Array annotations_store;
|
||||||
annotations_store.values.reserve(leg.annotations.size());
|
annotations_store.values.reserve(leg.annotations.size());
|
||||||
|
|
||||||
for (const auto& step : leg.annotations)
|
for (const auto &step : leg.annotations)
|
||||||
{
|
{
|
||||||
annotations_store.values.push_back(Get(step));
|
annotations_store.values.push_back(Get(step));
|
||||||
}
|
}
|
||||||
|
|
||||||
return annotations_store;
|
return annotations_store;
|
||||||
@ -305,7 +305,7 @@ class RouteAPI : public BaseAPI
|
|||||||
nodes.values.reserve(leg_geometry.osm_node_ids.size());
|
nodes.values.reserve(leg_geometry.osm_node_ids.size());
|
||||||
for (const auto node_id : leg_geometry.osm_node_ids)
|
for (const auto node_id : leg_geometry.osm_node_ids)
|
||||||
{
|
{
|
||||||
nodes.values.push_back(static_cast<std::uint64_t>(node_id));
|
nodes.values.push_back(static_cast<std::uint64_t>(node_id));
|
||||||
}
|
}
|
||||||
annotation.values["nodes"] = std::move(nodes);
|
annotation.values["nodes"] = std::move(nodes);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user