HybridRoutePlanner

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class HybridRoutePlanner : RoutePlanner

Deprecated

This will be removed from future releases after 2027-02-05.

Hybrid Routing allows you to specify two RoutePlanner instances, which will be executed depending on the ExecutionPolicy provided.

Types

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object Companion

Functions

Link copied to clipboard
open override fun close()

Cancels any ongoing plannings, and releases the resources used by the planner. Implementation of AutoCloseable.close.

Link copied to clipboard
open override fun planRoute(routePlanningOptions: RoutePlanningOptions, callback: RoutePlanningCallback): Cancellable

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.