NavigationRouter

interface NavigationRouter : Router

Extends Router to also provide ability for fetching and refreshing NavigationRoutes.

Functions

Link copied to clipboard
abstract fun cancelAll()

Interrupts all in-progress requests.

Link copied to clipboard
abstract fun cancelRouteRefreshRequest(requestId: Long)

Cancels a specific route refresh request.

Link copied to clipboard
abstract fun cancelRouteRequest(requestId: Long)

Cancels a specific route request.

Link copied to clipboard
abstract fun getRoute(routeOptions: RouteOptions, callback: NavigationRouterCallback): Long
abstract fun getRoute(routeOptions: RouteOptions, callback: RouterCallback): Long

Fetch routes based on RouteOptions.

Link copied to clipboard
abstract fun getRouteRefresh(    route: NavigationRoute,     legIndex: Int,     callback: NavigationRouterRefreshCallback): Long

Refresh the traffic annotations for a given underlying DirectionsRoute

abstract fun getRouteRefresh(    route: DirectionsRoute,     legIndex: Int,     callback: RouteRefreshCallback): Long

Refresh the traffic annotations for a given DirectionsRoute

Link copied to clipboard
abstract fun shutdown()

Release used resources.