osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.38k stars 989 forks source link

Bike routing preferring two left turns onto non-bike lane instead of existing bike lane(s) #11076

Open Leseratte10 opened 3 years ago

Leseratte10 commented 3 years ago

🐞 routing report

Routing engine

Routing Profile

Bike, balanced route.

Start and end points

Route from: "Turmallee 9, 50126 Bergheim, Germany" Route to: "Gutenbergstraße 2,4,6, 50126 Bergheim, Germany"

https://www.openstreetmap.org/#map=18/50.94892/6.63750

Actual and expected routes

In car routing mode, the route is what I'd consider "correct". From Turmallee towards the roundabout, then the third exit towards Gutenbergstraße. In bike routing mode, OsmAnd tells me to turn left onto Dieselstraße, then at the end again left onto Gutenbergstraße.

While that looks like a valid route (and it might even be a couple meters shorter), it's a pretty annoying route when driving a bicycle. The Dieselstraße is a one-way road that allows bicycles in both directions (so that would be okay). However, on the Gutenbergstraße, there's a parking lane on the right side next to the road, and a dedicated path for bicycles is on the right side of that parking lane. In OSM, that is entered as cycleway:right = track

Taking the route suggested by OsmAnd means you'd have to turn left from Dieselstraße onto Gutenbergstraße, and you'd either have to ride on the road instead of the bike path, or you'd have to dismount, cross the road, and walk through the parking lane to get to the bike path.

Taking the route through the roundabout instead is a way better route - there's pedestrian and bicycle crossings on all four roads on the roundabout (which are tagged in OSM as well), and on Gutenbergstraße you can directly turn onto the bike path from this crossing.

Photos are available at https://www.mapillary.com/app/?lat=50.94865348660477&lng=6.637150431057989&z=17&pKey=veTfrzJiCXDeRb4DTwXWAg

No idea what the best way would be to "teach" that to OsmAnd, but shouldn't a dedicated bike route through a roundabout and a dedicated bike lane on the destination route have a higher priority than two left-turns and then continuing on the road instead of on the bike lane?

Or is this mapped wrong in OSM and should be changed somehow?

Is this a regression?

No idea, I've just now started using OsmAnd.

🌍 Your Environment

OsmAnd Version:

OsmAnd+ 3.9.10

Device and Android/iOS version:

Xiaomi Mi 9T Pro (raphael) with MIUI 12.0.4 (Android 10)

Maps used (online or offline):

scaidermern commented 3 years ago

Looks like both GraphHopper and OSRM suggest the same route als OsmAnd, if I understood your description correctly:

Leseratte10 commented 3 years ago

Interesting. I probably should have checked other routers before reporting that bug. Is there a bug in the OSM data, or why do all routers suggest that suboptimal route? Does none of the routers take into account that there's no way to get onto the bike path on Gutenbergstraße when you come from Dieselstraße?

scaidermern commented 3 years ago

It looks like this "restriction" is not really represented in the OSM data right now. And I really can't think of a way to represent it correctly.

To be honest, it looks like bad planning of bicycle infrastructure to me. Why is there a oneway road with a bicycle lane in the opposite direction which leads to just being screwed up at the next intersection? :/

EssBee59 commented 3 years ago

Hello Leseratte! I think, there is a proper way to describe the situation in OSM (this way is recommanded in complex situations as your´s): If the bike path in the Gutembergstraße is not usable comming from the Dieselstraße, I suggest to modify OSM like this:

BTW: I am using the same smartphone modell as yours, with "dual band" GNSS, a good choice regards Ess Bee