onRouteAlternatives

abstract fun onRouteAlternatives(routeProgress: RouteProgress, alternatives: List<DirectionsRoute>, routerOrigin: RouterOrigin)

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.