fetchRoutes

fun fetchRoutes(options: RouteOptions)

Request routes based on RouteOptions. Routes obtained from this route request can be obtained via NavigationViewListener.onRouteFetching when the route is being fetched NavigationViewListener.onRouteFetchFailed if the route request failed NavigationViewListener.onRouteFetchCanceled if the route request was canceled NavigationViewListener.onRouteFetchSuccessful if the route request was a success

Parameters

options

RouteOptions


fun fetchRoutes(points: List<Point>)

Request routes based on list of Point. Routes obtained from this route request can be obtained via NavigationViewListener.onRouteFetching when the route is being fetched NavigationViewListener.onRouteFetchFailed if the route request failed NavigationViewListener.onRouteFetchCanceled if the route request was canceled NavigationViewListener.onRouteFetchSuccessful if the route request was a success The first point in the list should be the origin and last point should be the destination. If you have multi waypoints, you can insert additional waypoints in the list between the first and the last point.

Parameters

points

list of Point