RoutingApi
Entry point to perform a route planning action.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Link copied to clipboard
abstract fun planRoute(routingOptions: RoutingOptions): Result<RoutingResult, RoutingError>
Content copied to clipboard
Synchronously plans a route using the provided RoutingOptions object. If the call succeeds, returns a RoutingResult. If it fails, returns a RoutingError.
abstract fun planRoute(routingOptions: RoutingOptions, callback: RoutingCallback): Cancellable
Content copied to clipboard
Asynchronously plans a route using the provided RoutingOptions object and returns the planned route in the RoutingCallback.