sdk-routing / com.tomtom.online.sdk.routing / RoutingApi / planRoute

planRoute

abstract fun planRoute(routeQuery: RouteQuery): Single<RouteResponse>

Performs reactive route planning action based on provided RouteQuery object.

Parameters

routeQuery - The object which contains data necessary to execute route planning action.

Return
RouteResponse's Single object.

abstract fun planRoute(routeQuery: RouteQuery, callback: RouteCallback): Unit

Performs route planning action based on provided RouteQuery object and returns the route in the callback.

Parameters

routeQuery - The object which contains data necessary to execute route planning action.

callback - The RouteCallbackwhich contains data about planned route.

@Beta(2020, 12) abstract fun planRoute(evRouteSpecification: EvRouteSpecification): Result<EvRoutePlan>

Performs plan route computing action based on provided EvRouteSpecification object.

Parameters

evRouteSpecification - The object which contains data necessary to execute plan route computing action.

Return
EvRoutePlan's Result object

@Beta(2020, 12) abstract fun planRoute(evRouteSpecification: EvRouteSpecification, callback: EvRouteCallback): Unit

Performs plan route computing action based on provided EvRouteSpecification object and returns the route plan in the callback.

Parameters

evRouteSpecification - The object which contains data necessary to execute plan route computing action.