Set missing OSM Node ID to zero instead of SPECIAL NODE ID
This commit is contained in:
committed by
Patrick Niklaus
parent
493a9a1cb2
commit
1be7dedda7
@@ -42,10 +42,12 @@ class NearestAPI final : public BaseAPI
|
||||
auto waypoint = MakeWaypoint(phantom_node);
|
||||
waypoint.values["distance"] = phantom_with_distance.distance;
|
||||
|
||||
|
||||
|
||||
util::json::Array nodes;
|
||||
|
||||
std::uint64_t from_node = static_cast<std::uint64_t>(SPECIAL_OSM_NODEID);
|
||||
std::uint64_t to_node = static_cast<std::uint64_t>(SPECIAL_OSM_NODEID);
|
||||
std::uint64_t from_node = 0;
|
||||
std::uint64_t to_node = 0;
|
||||
|
||||
std::vector<NodeID> forward_geometry;
|
||||
if (phantom_node.forward_segment_id.enabled )
|
||||
|
||||
Reference in New Issue
Block a user