Router

interface Router

Router provides API to fetch route and cancel route-fetching request.

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: RouterCallback): Long
Fetch routes based on RouteOptions.
getRouteRefresh
Link copied to clipboard
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