Several EdgeId mapped to 1 osmID

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?

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.

1 Like

Got it, thanks for your quick response!