[OSRM-talk] Getting OSMNodeIDs in OSRM

Kerrick Staley kstaley at lyft.com
Mon Feb 1 17:03:00 UTC 2016

I want to create a binary that will take an input lat/long and give the two
OSMNodeIDs representing the nearest road segment. I was able to hack
something together using NearestPhantomNodes in the OSRM codebase, but I
can't figure out how to go from the NodeIDs in the PhantomNode to

It looks like the NodeID -> OSMNodeID mapping is dropped in
osrm-extract/osrm-prepare. Is this the case? Can I use the .osrm or
.osrm.nodes file to re-build the mapping?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20160201/df96aab7/attachment.html>

More information about the OSRM-talk mailing list