OnRouteDeviationListener

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.

Functions

Link copied to clipboard
abstract fun onRouteDeviated(location: GeoLocation, route: Route)

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.