NavigationRouter

interface NavigationRouter : Router

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

Functions

cancelAll
Link copied to clipboard
abstract fun cancelAll()
Interrupts all in-progress requests.
cancelRouteRefreshRequest
Link copied to clipboard
abstract fun cancelRouteRefreshRequest(requestId: Long)
Cancels a specific route refresh request.
cancelRouteRequest
Link copied to clipboard
abstract fun cancelRouteRequest(requestId: Long)
Cancels a specific route request.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getRoute
Link copied to clipboard
abstract fun getRoute(routeOptions: RouteOptions, callback: NavigationRouterCallback): Long
Fetch routes based on RouteOptions.
abstract fun getRoute(routeOptions: RouteOptions, callback: RouterCallback): Long
Fetch routes based on RouteOptions.
getRouteRefresh
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
hashCode
Link copied to clipboard
open fun hashCode(): Int
shutdown
Link copied to clipboard
abstract fun shutdown()
Release used resources.
toString
Link copied to clipboard
open fun toString(): String