reroute
abstract fun reroute(callback: NavigationRerouteController.RoutesCallback)
Content copied to clipboard
Invoked whenever re-route is needed. For instance when a driver is off-route. Called just after an off-route event.
In case you need the latest RouteProgress in your reroute logic, the SDK guarantees that RouteProgress with RouteProgressState.OFF_ROUTE arrives earlier at RouteProgressObserver.onRouteProgressChanged than reroute is called.