organicmaps / organicmaps

🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Please donate to support the development!
https://organicmaps.app
Apache License 2.0
8.58k stars 837 forks source link

three crossings and longer path are preferred over one road crossing in bicycle routing, for no clear reason #7954

Open matkoniecz opened 2 weeks ago

matkoniecz commented 2 weeks ago

⚠ Have you searched for similar, already existing issues?

4059 is a bit similar but not so obvious and seems to be unrelated to wanting as many stops as possible (is crossing penalty inverted or what?)

Describe the issue

In this routing case there are two options:

go trough a single crossing, join traffic (Poland has right-hand traffic).

In absolutely worst case you can wait for green sign on second crossing and get on road there.

Second is to go through three crossings.

Note that with explicit via point it goes there - so geometry is not broken.

Path with one crossing is clearly preferable as it is shorter and you need to wait for green signal once - not three times.

screen06

Steps to reproduce

  1. Do https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=50.08227%2C20.03348%3B50.08253%2C20.03191#map=19/50.08230/20.03264 search in OM

Expected behaviour

Better path is chosen

Screenshots If applicable, add screenshots or screen recordings to help explain your problem.

Screenshot_20240419-002349 Screenshot_20240419-003030

System information:

Additional context Please add any other context or comments here that may be useful.

Is OM having test cases/unit tests for various routing cases?

matkoniecz commented 1 week ago

Is OM having test cases/unit tests for various routing cases?

and if OM test cases test also routing I could contribute a new (failing) test case.

map-per commented 6 days ago

I took a look at the OpenStreetMap map data and did not find any errors. So this looks like a problem with Organic Maps.