public class OnlineRoutingApi extends java.lang.Object implements RoutingApi
DEFAULT_ONLINE_ROUTING_ENDPOINT, DEFAULT_ONLINE_ROUTING_SERVICE_API_VERSION| Modifier and Type | Method and Description |
|---|---|
static RoutingApi |
create(android.content.Context context)
Creates new RoutingApi object which will use provided routing api key.
|
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. |
public static RoutingApi create(@NonNull android.content.Context context)
public Single<RouteResponse> planRoute(RouteQuery routeQuery)
RoutingApiplanRoute in interface RoutingApirouteQuery - The object which contains data necessary to execute route planning action.RouteResponse's Single object.public Single<BatchRoutingResponse> planBatchRoute(BatchRoutingQuery batchQuery)
RoutingApiBatchRoutingQuery object.planBatchRoute in interface RoutingApibatchQuery - The object which contains data necessary to execute batch computing action.BatchRoutingResponse's Single objectpublic void planBatchRoute(BatchRoutingQuery batchQuery, BatchableRoutingResultListener listener)
RoutingApiBatchRoutingQuery object and returns the routes in the callback.planBatchRoute in interface RoutingApibatchQuery - The object which contains data necessary to execute batch computing action.listener - The BatchableRoutingResultListener which contains data about batch.public Single<MatrixRoutingResponse> planMatrixRoutes(MatrixRoutingQuery matrixQuery)
RoutingApiMatrixRoutingQuery object.planMatrixRoutes in interface RoutingApimatrixQuery - The object which contains data necessary to execute matrix computing action.BatchRoutingResponse's Single objectpublic void planMatrixRoutes(MatrixRoutingQuery matrixQuery, MatrixRoutingResultListener listener)
RoutingApiMatrixRoutingQuery object and returns the routes in the callback.planMatrixRoutes in interface RoutingApimatrixQuery - The object which contains data necessary to execute matrix computing action.listener - The MatrixRoutingResultListener which contains data about matrix.public void planRoute(RouteQuery routeQuery, RouteCallback callback)
RoutingApiRouteQuery object and returns the route in the callback.planRoute in interface RoutingApirouteQuery - The object which contains data necessary to execute route planning action.callback - The RouteCallbackwhich contains data about planned route.public Single<ReachableRangeResponse> findReachableRange(ReachableRangeQuery query)
RoutingApiReachableRangeQuery object.findReachableRange in interface RoutingApiquery - The object which contains data necessary to execute reachable range computing action.ReachableRangeResponse's Single objectpublic void findReachableRange(ReachableRangeQuery query, ReachableRangeResultListener listener)
RoutingApiReachableRangeQuery object and returns the route in the callback.findReachableRange in interface RoutingApiquery - The object which contains data necessary to execute reachable range computing action.listener - The ReachableRangeResultListener which contains data about reachable range.