osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.66k stars 1.02k forks source link

Routes to Zermatt are wrong #21041

Closed Gravity2106 closed 3 days ago

Gravity2106 commented 2 weeks ago

Routing engine

Routing Profile

The routes suggested seems to have bad info about the geography and it paints the last part of the way straight through the mountains

Start and end points

For example Bern -> Zermatt 4

Actual route

It fails, it has no sense

Expected route

Google maps offers a way to arrive

Maps you used (online or offline)

Your Environment

OsmAnd Version: 4.8.6
Android version: 14
Device model: pixel 7a

Anything else?

No response

scaidermern commented 2 weeks ago

Maybe this is because of the motor_vehicle=permit tag: https://www.openstreetmap.org/way/30952472

Since 1931 private car traffic isn't allowed in/to Zermatt. There is a special permit which is only issued to locals, some guests and for supply/rescue.

I didn't check what OsmAnd is exactly doing but your description doesn't sound too wrong. OsmAnd could ask if you have this special permit when trying to calculate a route. And ideally it shouldn't just show a straight line from the end of the route to the final destination. This can be very misleading. Maybe present a notification to the user that the last n km of the route couldn't be calculated for the current transport mode.

yuriiurshuliak commented 2 weeks ago

While checking, I found that the route from Bern to Zermatt 4 on Google Maps matches the route created by our web version. You can view it here: Web version link.