[Bug]: While exiting from a tunnel, location is jumped backwards
Mapbox Navigation SDK version
Mapbox navigation SDK version 2.18.4
Steps to reproduce
- Start a navigation
- Enter a tunnel on the road
- While existing from the tunnel user location is jumped backwards
Expected behavior
While existing from the tunnel user location should not be jumped backwards
Actual behavior
While exiting from a tunnel, location is jumped backwards Please take a look the recorded video below:
https://github.com/user-attachments/assets/c232bacb-421e-408c-976a-23feb0a8122e
Is this a one-time issue or a repeatable issue?
repeatable
Hi @santoso8118
It looks like the route simulation was enabled when in a tunnel. The simulation might be not accurate and when switching back to the real location near the tunnel some jumps can happen. Please note that you can disable simulation in tunnels by providing simulating: .never instead of simulating: .inTunnels when creating MapboxNavigationService.
Please provide a history file if you'd like to receive a more detailed look. Please take a look at this sample to check how you can record a history file.
@kried
We are setting simulating: .never always and we never simulate user location.
Is there any logic from Mapbox itself to start simulating location when user is in tunnel ?