osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.56k stars 1k forks source link

Navigation: filter false GPS readings #15304

Open FransM opened 1 year ago

FransM commented 1 year ago

Description

What happened to me is that I was cycling and suddenly got a location that was 100 km or so away from me. After a few seconds the map went back to where I was.

Apparently there was a false GPS reading; the distance was so much off that it was not really possible to move that distance in the time between the previous reading and the false one. Suggestion is to not accept GPS positions if the position between the previous reading and the next one is e.g. more than can be achieved when travelling with less than 1000 km/h

How to reproduce?

Probably this is reproducible by simulating positions/gps data. I have no experience in that area.

Your Environment

OsmAnd Version: 4.2.7 Android/iOS version: 11 Device model: Moto G pro

Maps used (online or offline):
If you have an issue related to offline maps, tell us the exact name of the map file where the issue occurs and its edition date.

vshcherb commented 1 year ago

I think it's implemented in GPS recording Settings and with GPS filter functionality. https://osmand.net/docs/user/map/track-context-menu/#gps-filter

FransM commented 1 year ago

This is not a recording issue, I would like to see some filtering of false readings while in navigation mode so my phone does not suddenly tell me I am 100 km or so away from where I actually am.

vshcherb commented 1 year ago

Navigation is using only locations with precision of 30m, so it's pretty strange that GPS is precise but 100 km away

nyanmeister commented 1 year ago

Addressing this issue may negatively affect users who experience teleportation due to a resonance cascade.