sdk-routing / 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.

Inherited Properties

DEFAULT_ONLINE_ROUTING_ENDPOINT

static val DEFAULT_ONLINE_ROUTING_ENDPOINT: String

Default TomTom's Routing API endpoint.

DEFAULT_ONLINE_ROUTING_SERVICE_API_VERSION

static val DEFAULT_ONLINE_ROUTING_SERVICE_API_VERSION: String

Default TomTom's Routing API service version.

Functions

create

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

Creates new RoutingApi object which will use provided routing api key. It uses default values for 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

planRoute

open fun planRoute(routeQuery: RouteQuery!): Single<RouteResponse!>!
open fun planRoute(routeQuery: RouteQuery!, callback: RouteCallback!): Unit