on Route Alternatives
abstract fun onRouteAlternatives(routeProgress: RouteProgress, alternatives: List<DirectionsRoute>, routerOrigin: RouterOrigin)
Content copied to clipboard
Invoked whenever alternative routes are inspected. There are no available alternatives if the list is empty.
Parameters
routeProgress
the current route's progress.
alternatives
list of alternative routes, can be empty.