GIScience / openrouteservice

🌍 The open source route planner api with plenty of features.
https://openrouteservice.org
GNU General Public License v3.0
1.44k stars 394 forks source link

Allow avoidance of cobblestone #847

Open krichter722 opened 3 years ago

krichter722 commented 3 years ago

So far ferries, fords and steps can be avoided on the route. I'd be nice to be able to avoid cobblestone pavements on the route upon selection. This is a regular use case for navigation especially for inner-city routes.

rabidllama commented 3 years ago

Hi @krichter722

thanks for the suggestion - we are pretty busy at the minute so I can't say for sure when we would get around to implementing something for this, but I will leave the issue open so that we can still see it.

Do you have a particular use case in mind for this?

krichter722 commented 3 years ago

@rabidllama Thanks for your feedback. I live in this street which itself is paved with cobblestone as are most of the crossing streets in the area. They very hard to use with a bicycle. There exceptions, some streets can be used with a bike and are crossing each other which makes it possible to gain access to them over the shortest possible path on cobblestone. That means detours in favour of usability of streets for cyclists. Example:

In order to get from the yellow to the green point, I'd have to take the cyan route which is the one without cobblestone and thus usable by bike.

screenshot-www openstreetmap org-2021 01 14-00_04_32

I don't know if the data about pavement is present in OSM, i.e. whether you can reconstruct this choice of route based on data. However, OSMAnd has figured this out pretty well and calculates the shortest path over cobblestone to a route which has no cobblestone on it if selected in the navigation profile.

Note: some streets have parts paved with cobblestone and others with asphalt, some even switch from cobblestone to asphalt and back to cobblestone while having the same name, i.e. being the same street and thus probably the same way in OSM.