fun interface 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.


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

Called whenever route deviation has been detected. In this case navigation will keep navigating, but without the routes. It means that navigation will behave like after calling TomTomNavigation.start without providing any Route. Whenever it happens then it is recommended to provide new Route through TomTomNavigation.update method.