mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

[Bug]: While exiting from a tunnel, location is jumped backwards

Open santoso8118 opened this issue 6 months ago • 2 comments

Mapbox Navigation SDK version

Mapbox navigation SDK version 2.18.4

Steps to reproduce

  1. Start a navigation
  2. Enter a tunnel on the road
  3. 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

santoso8118 avatar Jun 23 '25 02:06 santoso8118

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 avatar Jun 24 '25 11:06 kried

@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 ?

santoso8118 avatar Sep 03 '25 03:09 santoso8118