GraphHopper.com | Forum | GitHub | Maps | Blog

Several EdgeId mapped to 1 osmID


#1

Hi,

Recently I try to use the code here to retrieve the original osm id by using the internal edge id. But from the results I just found that several edge ids can lead to the same osm id, for example:

EdgeId = 46398, OsmId = 171731488
EdgeId = 46399, OsmId = 171731488

I should have lost some details about how ‘edge’ and ‘osm way’ are related. Could anyone elaborate a little bit on this?


#2

in graphhopper, one OSM Way is often splitted into multiple edges, thus there can’t be a unique mapping from one OSM Way ID to exactly one GraphHopper edge ID.

see here.


#3

Got it, thanks for your quick response!