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 online routing service 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<RouteResult> |
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<RouteResult> planRoute(RouteQuery routeQuery)
RoutingApi
planRoute
in interface RoutingApi
routeQuery
- The object which contains data necessary to execute route planning action.public void planRoute(RouteQuery routeQuery, RouteCallback callback)
RoutingApi
planRoute
in interface RoutingApi
routeQuery
- The object which contains data necessary to execute route planning action.callback
- The RouteCallback which contains data about planned route.public Single<ReachableRangeResponse> findReachableRange(ReachableRangeQuery query)
RoutingApi
findReachableRange
in interface RoutingApi
query
- The object which contains data necessary to execute reachable range computing action.public void findReachableRange(ReachableRangeQuery query, ReachableRangeResultListener listener)
RoutingApi
findReachableRange
in interface RoutingApi
query
- The object which contains data necessary to execute reachable range computing action.listener
- The ReachableRangeResultListener which contains data about reachable range.