Project-OSRM / osrm-backend

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

Don't snap to private grounds on bike profile #5153

Closed chaupow closed 4 weeks ago

chaupow commented 6 years ago

Issue

On the bike profile, we allow routing through private grounds such as parking lots or pushing the bike on foot paths.

For routing this is usually not too much of an issue because speed/weight values should ensure that we prefer routes on "normal roads" compared to parking lots etc. and routing through these is only used if necessary.

However, when the destination or start of a route are close to foot paths or parking lots, we snap on the closest routable segment. So if a start is closer to a parking lot than to a road we snap to the parking lot even though it would make more sense to start on the nearby road.

Snapping in OSRM only takes in account big or small graph components when choosing where to snap to and prefers snapping to big components.

Examples

image screenshot 2018-07-20 12 29 08 screenshot 2018-07-20 13 49 45

Goal

For bikes, it would be additionally desirable to prefer snapping to the closest road and not to foot paths or parking lots.

chaupow commented 6 years ago

Approach

emiltin commented 6 years ago

in the example above, it makes sense. but if you actually start on a parking lot, i think you want the route to start where you are, not at a nearby road?

chaupow commented 6 years ago

That's right. Ideas floating around are:

Not very sure how to solve this yet either.

github-actions[bot] commented 2 months ago

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