Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.34k stars 3.36k forks source link

Sometimes line between node and projection node cross rivers, railways #6178

Closed amatrosovs closed 1 month ago

amatrosovs commented 2 years ago

image When between point is not any way, it starts to searching nearest way by making projection node and in this process rivers and railways do not block projection line(line between node and projection node) and for user it looks like car/bicycle fly over impassable object. For example this screenshot. I think this is bug and if can be fixed by modifying osrm code, profiles lua code I want to fix this.

amatrosovs commented 2 years ago

image This is a similar bug in OSRM demo server

danpat commented 2 years ago

While I agree that this is "wrong" behaviour, I'm not sure it's really feasible to store all the lake/river/water/fence/other barrier geometry in our spatial index and use it to prevent this.

We would also need to decide what the right behaviour is here - snap to another road that's further away but doesn't cross a barrier?

amatrosovs commented 2 years ago

I think that right behavior would be snap to another road that's further away but doesn't cross a barrier

github-actions[bot] commented 3 months ago

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.