Used to inform caller about getting off the route.

Important: This is a Public Preview API. It may be changed or removed at any time.


Link copied to clipboard
abstract fun onRouteDeviation(location: <Error class: unknown class>, route: <Error class: unknown class>)

Called whenever route deviation has been detected. In this case, if automatic deviation replanning has not been enabled in NavigationConfiguration, navigation will keep navigating, but without the routes. It means that navigation will behave like after calling TomTomNavigation.start without providing NavigationOptions. Whenever it happens then it is recommended to provide a new RoutePlan through the TomTomNavigation.update method.