osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.72k stars 1.03k forks source link

Strange instructions when driving through an intersection #21245

Open Prusaker opened 3 weeks ago

Prusaker commented 3 weeks ago

Description

When passing through an intersection, the program shows strange instructions. In earlier versions of the program (OsmAnd 4.6), instructions for driving through intersections are displayed correctly.

Steps to reproduce

1) Build first route from 53.1422182, 24.8015837 to 53.1422406, 24.7997453 2) Build second route from 53.1422406, 24.7997453 to 53.1425769, 24.8053097.

Actual result

Strange instructions for first route: 1 Instead of a left turn, the program shows a smooth left turn.

Early OsmAnd build (4.6) show this route correctly: 4

Strange instructions for second route: 2

Early OsmAnd build (4.6) show this route correctly: 3

Expected result

We need to return the instructions to the way they were done correctly in the older version of the program.

Your Environment (required)

OsmAnd Version: OsmAnd Nightly 5.0.0#3649m Android/iOS version: MIUI Global 11.0.7 Device model: Redmi 8A

yuriiurshuliak commented 3 weeks ago

The bug was not reproduced. I tested this issue using the provided coordinates for the two routes, activating the simulation mode, and monitoring the Next turn widget.

As a result, the instructions mentioned do appear, but they correspond accurately to the turns on the route. In the first route (link), the navigation correctly shows the approach to the road followed by a left turn. In the second route (link), the guidance properly indicates going straight initially and then turning right.

OsmAnd~ 5.0.0#3656m, released: 2024-11-05

Prusaker commented 3 weeks ago

It shouldn't be like that.

There shouldn't be a smooth left turn in the first image. The road goes straight ahead and then there is a left turn!

As I wrote in the first message, earlier versions of the program work correctly and show the instructions correctly.

In your screenshots I see confirmation that the bug is reproducible and the instructions are shown incorrectly compared to version 4.6.

Prusaker commented 2 weeks ago

I have done some research. The bug appears if there is a turn:lanes tag at the intersection before the fork in the road directions.

If this tag (turn:lanes) removed, the navigation instructions will display correctly. For example, I temporary remove turn:lanes tag from this highway (https://www.openstreetmap.org/way/744357587) and got the result: 111

Instructions for turning right and for going straight are now displayed correctly, but due to the lack of tag turn:lanes, correct instructions for driving in lanes are not displayed.

vshcherb commented 2 weeks ago

Probably you are using old version @Prusaker - https://test.osmand.net/map/navigate/?start=53.141790,24.801807&end=53.142241,24.799745&profile=car#18/53.14263/24.80164 here is no issue with latest maps and turn:lanes present

Prusaker commented 2 weeks ago

Latest build - OsmAnd Nightly 5.0.0#3692m. Bug still present: 111 Instead of turning left, he suggests keeping left first and only then making the left turn. Instead of suggesting to simply make a left turn.

yuriiurshuliak commented 1 week ago

The bug has been reproduced. To reproduce the issue:

  1. Select the Car profile in OsmAnd.
  2. Build the route using these coordinates:
    • Start: 53.1422406, 24.7997453
    • Finish: 53.1425769, 24.8053097
  3. Start navigation and monitor the instructions in the Next turn widget.

Results:

OsmAnd~ 5.0.0#3767m, released: 2024-11-20

vshcherb commented 1 week ago
Keep left (+TL,C|TR) onto Р99 and go 0.0 km.  [Way 744357578](https://openstreetmap.org/way/744357578)

Should be muted to avoid visibility as separate turn