perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.08k stars 350 forks source link

Bug in routing for Address in Netherlands #478

Closed apfz closed 6 years ago

apfz commented 6 years ago

Find attached two screenshots.

From Location A (Brugstraat 16-5, Arnhem, Netherlands) to Location B (Meijnerswijk 13) gives an incorrect route while from A to Meijnerswijk 12 gives the correct one. Seems that in case of door number 13, the nearest road is snapped to the one across the river.

correct incorrect
perliedman commented 6 years ago

Hi!

As I understand it, this is not an issue with Leaflet Routing Machine, but rather with OSRM or the underlying OpenStreetMap data. Snapping is not done in Leaflet Routing Machine, but in the routing backend (which by default is OSRM).

From a quick look, it looks like OSRM for some reason thinks the "Meijnerswijk" road is not routable, which makes the road on the other side of the channel the closest option.

Look at the in OpenStreetMap, and possibly contact the OSRM team if you still believe this is an issue with the software rather than the geographic information.