osmandapp / OsmAnd

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

Interpolate future location for navigation (experimental) #21396

Open vshcherb opened 1 day ago

vshcherb commented 1 day ago

We can add a setting - number between (0, 1) to interpolate location by the route in future. That could only be implemented when location is snapped to active route.

0 - means that animation lags behind and never predicts. So on average it starts animation to received location and lags behind for 1 second. 1 - means that we should exactly predict next location which happens in 1 second, so once location is received it will be exact. So delay theoratically 0.

Setting in between 0 and 1 mean that animation will have a delay and have a prediction portion