[OSRM-talk] Getting OSMNodeIDs in OSRM
patrick.niklaus at student.kit.edu
Mon Feb 1 17:18:22 UTC 2016
the data is not available in the server anymore, but you can load it
to memory if you like (which will increase the memory consumption
quite a bit on large datasets). The idea is to adapt this  function
to load a exteractor::ExternalMemoryNode vector to array that can
translate from NodeID (the index to that array) to the OSM id (the id
property of the struct).
Hope this helps!
On Mon, Feb 1, 2016 at 6:03 PM, Kerrick Staley <kstaley at lyft.com> wrote:
> 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?
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
More information about the OSRM-talk