sdk-routing-rxjava2 / com.tomtom.online.sdk.routing / OnlineRoutingApi

OnlineRoutingApi

open class OnlineRoutingApi : RoutingApi

Default TomTom implementation of the entry point to perform route planning action based on TomTom's Routing API.

Functions

create

open static fun create(context: Context): RoutingApi!
open static fun create(context: Context, apiKey: String): RoutingApi!

Creates a new RoutingApi object which will use the provided Routing API Key. It uses the default values for the Routing service endpoint and Routing service API version.

findReachableRange

open fun findReachableRange(query: ReachableRangeQuery): Single<ReachableRangeResponse>
open fun findReachableRange(query: ReachableRangeQuery, listener: ReachableRangeResultListener): Unit

planBatchRoute

open fun planBatchRoute(batchQuery: BatchRoutingQuery): Single<BatchRoutingResponse>
open fun planBatchRoute(batchQuery: BatchRoutingQuery, listener: BatchableRoutingResultListener): Unit

planMatrixRoutes

open fun planMatrixRoutes(matrixQuery: MatrixRoutingQuery): Single<MatrixRoutingResponse>
open fun planMatrixRoutes(matrixQuery: MatrixRoutingQuery, listener: MatrixRoutingResultListener): Unit

planReachableRange

open fun planReachableRange(reachableRangeSpecification: ReachableRangeSpecification): Result<ReachableRangeArea>
open fun planReachableRange(reachableRangeSpecification: ReachableRangeSpecification, reachableAreaCallback: ReachableAreaCallback): Unit

planRoute

open fun planRoute(routeQuery: RouteQuery): Single<RouteResponse>
open fun planRoute(routeQuery: RouteQuery, callback: RouteCallback): Unit
open fun planRoute(evRouteSpecification: EvRouteSpecification): Result<EvRoutePlan>
open fun planRoute(evRouteSpecification: EvRouteSpecification, callback: EvRouteCallback): Unit
open fun planRoute(routeSpecification: RouteSpecification): Result<RoutePlan>
open fun planRoute(routeSpecification: RouteSpecification, routeCallback: RouteCallback): Unit

planRoutes

open fun planRoutes(batchRoutesSpecification: BatchRoutesSpecification): Result<BatchRoutesPlan>
open fun planRoutes(matrixRoutesSpecification: MatrixRoutesSpecification): Result<MatrixRoutesPlan>
open fun planRoutes(batchRoutesSpecification: BatchRoutesSpecification, batchRoutesCallback: BatchRoutesCallback): Unit
open fun planRoutes(matrixRoutesSpecification: MatrixRoutesSpecification, matrixRoutesCallback: MatrixRoutesCallback): Unit