Router

interface Router

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

Types

Callback
Link copied to clipboard
interface Callback
Callback for Router fetching

Functions

cancel
Link copied to clipboard
abstract fun cancel()
Interrupts a route-fetching request if one is in progress.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getRoute
Link copied to clipboard
abstract fun getRoute(routeOptions: RouteOptions, callback: Router.Callback)
Fetch route based on RouteOptions
getRouteRefresh
Link copied to clipboard
abstract fun getRouteRefresh(route: DirectionsRoute, legIndex: Int, callback: RouteRefreshCallback)
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