Navigation current maneuver not following current route [iOS SDK]

135 Views Asked by At

I am simulating turn-by-turn navigation for a truck route and sometimes the currentManeuver does not follow the path of the route. After passing the maneuver navigation will recalculate and will keep trying direct me somewhere that is not my route's destination. Here is a screenshot of the current maneuver take an exit, instead of keeping straight on the highway. TTS for maneuver [After one mile keep right and take the exit].

1

There are 1 best solutions below

0
On

The issue was that the navigation map component was not unmounting after leaving the page, so multiple routes were active at the same time causing the constant rerouting and incorrect maneuvers. After using useFocusEffect to mount/unmount the nav map, each time i navigate to the map only 1 route is added to the map object.