getRoutes

fun getRoutes(): List<DirectionsRoute>

Get a list of routes.

If the list is not empty, the route at index 0 is the one treated as the primary route and used for route progress, off route events and map-matching calculations.

Return

a list of DirectionsRoutes