-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
renumbering of nodes in StorageManeuverOverride #4906
Copy link
Copy link
Closed
Labels
Description
For large enough extracts nodes permutation code in osrm-partition modifies EBG node ids, but values of node_sequences and maneuver_overrides.start_node in .osrm.maneuver_overrides file are not updated.
To fix the issue:
- add
readfunction for.osrm.maneuver_overridesfiles dual towrite - add
renumberfunction forstd::vector<NodeID>https://github.com/Project-OSRM/osrm-backend/blob/a2c7f82ec89e3de3d540618c67e9b63dc907bd37/include/partitioner/renumber.hpp - add read-renumber-write for
maneuver_overridesandnode_sequencesafterosrm-backend/src/partitioner/partitioner.cpp
Lines 142 to 147 in a2c7f82
{ extractor::EdgeBasedNodeDataContainer node_data; extractor::files::readNodeData(config.GetPath(".osrm.ebg_nodes"), node_data); renumber(node_data, permutation); extractor::files::writeNodeData(config.GetPath(".osrm.ebg_nodes"), node_data); } - test locally turn instructions of the route http://map.project-osrm.org/?z=18¢er=38.904307%2C-77.016853&loc=38.905136%2C-77.015501&loc=38.904288%2C-77.015845&hl=en&alt=0
with the recent http://download.geofabrik.de/north-america/us/district-of-columbia-latest.osm.pbf
/cc @chaupow
Reactions are currently unavailable