moveRoutesFromPreviewToNavigator

fun moveRoutesFromPreviewToNavigator()

Convenience method that takes previewed routes and sets them to Navigator, clearing the previewed routes afterwards. Equivalent to:

mapboxNavigation.setNavigationRoutes(mapboxNavigation.getRoutesPreview()!!.routesList)
mapboxNavigation.setRoutesPreview(emptyList())

Throws

when previewed routes are empty.