public interface RoutingApi
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ONLINE_ROUTING_ENDPOINT
Default TomTom's OnlineRouting endpoint
|
static java.lang.String |
DEFAULT_ONLINE_ROUTING_SERVICE_API_VERSION
Default TomTom's OnlineRouting service version
|
Modifier and Type | Method and Description |
---|---|
Single<ReachableRangeResponse> |
findReachableRange(ReachableRangeQuery query)
Performs reactive reachable range computing action based on provided
ReachableRangeQuery object. |
void |
findReachableRange(ReachableRangeQuery query,
ReachableRangeResultListener listener)
Performs reachable range computing action action based on provided
ReachableRangeQuery object and returns the route in the callback. |
Single<BatchRoutingResponse> |
planBatchRoute(BatchRoutingQuery batchQuery)
Performs reactive batch computing action based on provided
BatchRoutingQuery object. |
void |
planBatchRoute(BatchRoutingQuery batchQuery,
BatchableRoutingResultListener listener)
Performs batch computing action based on provided
BatchRoutingQuery object and returns the routes in the callback. |
Single<MatrixRoutingResponse> |
planMatrixRoutes(MatrixRoutingQuery matrixQuery)
Performs reactive matrix computing action based on provided
MatrixRoutingQuery object. |
void |
planMatrixRoutes(MatrixRoutingQuery matrixQuery,
MatrixRoutingResultListener listener)
Performs matrix computing action based on provided
MatrixRoutingQuery object and returns the routes in the callback. |
Single<RouteResponse> |
planRoute(RouteQuery routeQuery)
Performs reactive route planning action based on provided RouteQuery object.
|
void |
planRoute(RouteQuery routeQuery,
RouteCallback callback)
Performs route planning action based on provided
RouteQuery object and returns the route in the callback. |
static final java.lang.String DEFAULT_ONLINE_ROUTING_ENDPOINT
static final java.lang.String DEFAULT_ONLINE_ROUTING_SERVICE_API_VERSION
Single<RouteResponse> planRoute(RouteQuery routeQuery)
routeQuery
- The object which contains data necessary to execute route planning action.RouteResponse
's Single object.Single<MatrixRoutingResponse> planMatrixRoutes(MatrixRoutingQuery matrixQuery)
MatrixRoutingQuery
object.matrixQuery
- The object which contains data necessary to execute matrix computing action.BatchRoutingResponse
's Single objectvoid planMatrixRoutes(MatrixRoutingQuery matrixQuery, MatrixRoutingResultListener listener)
MatrixRoutingQuery
object and returns the routes in the callback.matrixQuery
- The object which contains data necessary to execute matrix computing action.listener
- The MatrixRoutingResultListener
which contains data about matrix.void planRoute(RouteQuery routeQuery, RouteCallback callback)
RouteQuery
object and returns the route in the callback.routeQuery
- The object which contains data necessary to execute route planning action.callback
- The RouteCallback
which contains data about planned route.Single<ReachableRangeResponse> findReachableRange(ReachableRangeQuery query)
ReachableRangeQuery
object.query
- The object which contains data necessary to execute reachable range computing action.ReachableRangeResponse
's Single objectvoid findReachableRange(ReachableRangeQuery query, ReachableRangeResultListener listener)
ReachableRangeQuery
object and returns the route in the callback.query
- The object which contains data necessary to execute reachable range computing action.listener
- The ReachableRangeResultListener
which contains data about reachable range.Single<BatchRoutingResponse> planBatchRoute(BatchRoutingQuery batchQuery)
BatchRoutingQuery
object.batchQuery
- The object which contains data necessary to execute batch computing action.BatchRoutingResponse
's Single objectvoid planBatchRoute(BatchRoutingQuery batchQuery, BatchableRoutingResultListener listener)
BatchRoutingQuery
object and returns the routes in the callback.batchQuery
- The object which contains data necessary to execute batch computing action.listener
- The BatchableRoutingResultListener
which contains data about batch.