requestRoute

abstract fun requestRoute(request: RouteRequest, callback: RoutingRequestCallback)

Request a routing. The response will be in the callback which could be a success or an error.

Parameters

request

The routing request. See RouteRequest

callback

A callback for routing navigation. See RoutingRequestCallback

Setup a RoutingRequestCallback for routing navigation. The routing callback handles the routing request, routing response, latest routing response's status, routing instructions and how to recalculate after a new routing response.