Hey Kerrick, 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 [1] 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).
[1] https://github.com/Project-OSRM/osrm-backend/blob/f5c12ec4330c0c835fc09dc349878e4fc670b861/include/util/graph_loader.hpp#L65-L105 Hope this helps! Cheers, Patrick On Mon, Feb 1, 2016 at 6:03 PM, Kerrick Staley <[email protected]> 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 > OSMNodeIDs. > > 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? > > Thanks, > Kerrick > > > _______________________________________________ > OSRM-talk mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/osrm-talk > _______________________________________________ OSRM-talk mailing list [email protected] https://lists.openstreetmap.org/listinfo/osrm-talk
