planRoute
Synchronously plans a route and its alternative routes using the provided RoutePlanningOptions object. If the call succeeds, returns a RoutePlanningResponse. If it fails, returns a RoutingFailure.
Return
If the call succeeds, returns a RoutePlanningResponse. If it fails, returns a RoutingFailure.
Parameters
The object containing the route options needed to plan a route.
Asynchronously plans a route and its alternative routes using the provided RoutePlanningOptions. If the operation succeeds, RoutePlanningCallback.onSuccess is called with a RoutePlanningResponse. If the operation fails, RoutePlanningCallback.onFailure is called with a RoutingFailure.
Return
cancellable operation.
Parameters
The route options needed to plan a route. a route.
The RoutePlanningCallback invoked after each route has been planned and when planning of all routes has finished, either successfully or with an error. The callback will be executed on the main thread.