HybridRoutePlanner

Deprecated

This API is deprecated, for more details please go to: https://developer.tomtom.com/navigation/android/releases/versions/2.0

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun advanceGuidanceProgress(routeIncrementOptions: RouteIncrementOptions): Result<Route, RoutingFailure>

Calculates route contents (instructions, lane guidance and junction views) for the first sequence of instructions following the last successful increment.

Link copied to clipboard
open override fun backToRoute(backToRouteOptions: BackToRouteOptions): Result<BackToRouteResponse, RoutingFailure>

Synchronously plans a route to return to the original route using the provided BackToRouteOptions object.

open override fun backToRoute(backToRouteOptions: BackToRouteOptions, callback: BackToRouteCallback): Cancellable

Asynchronously plans a route to return to the original route using the provided BackToRouteOptions object.

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): Result<RoutePlanningResponse, RoutingFailure>

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.

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.