on Routes Ready
abstract fun onRoutesReady(routes: List<DirectionsRoute>, routerOrigin: RouterOrigin)
Content copied to clipboard
Called whenever a new set of routes is available.
Parameters
routes
the most optimal route has index 0. If requested, alternative routes are available on higher indices. At least one route is always available in a successful response.
routerOrigin
route origin