osmandapp / OsmAnd

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

Wrong voice warning for pedestrian crossing #12079

Open Vascom opened 3 years ago

Vascom commented 3 years ago

Description

When a voice warning is turned on on the route about approaching a pedestrian crossing, there are false positives. This happens if there is a pedestrian crossing on the route, but is on an adjacent road, for example, when making a U-turn. Example of the such route: https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=55.62689%2C37.19844%3B55.63215%2C37.21082#map=15/55.6338/37.2151

As I understand it is because osmand check only direct distance to the pedestrian crossing. But need to check distance on the route.

How to reproduce?

Create route in osmand as in my example and run emulating. You will be warned by voice twice about pedestrian crossing. First warning - wrong.

Your Environment

OsmAnd Version: 3.9.10 Android version: 11 Device model: Xiaomi Mi 9

Maps used (online or offline):
Issue not depend at type of the map.

Please correct this bug.

Zirochkabila commented 2 years ago

Your case was checked with OsmAnd version 4.1.11 - it could not be recreated. Voice prompts work correctly, in your example the voice prompt for the pedestrian crossing is performed before the pedestrian crossing.

vshcherb commented 2 years ago

The map is fixed and now https://www.openstreetmap.org/way/502588443#map=18/55.62767/37.20103 https://www.openstreetmap.org/way/198723417 don't have common points, so no alert warning is present on the route.

vshcherb commented 2 years ago

Apparently bug is present: The crossing from https://www.openstreetmap.org/way/607472555 is wrong announced while driving other on https://www.openstreetmap.org/way/172330706