public interface RouteService
Modifier and Type | Interface and Description |
---|---|
static class |
RouteService.Builder |
Modifier and Type | Method and Description |
---|---|
void |
cancelRouteRequests() |
boolean |
hasPendingRequests() |
CallClaimcheck |
requestReroute(Coordinate startLocation,
java.util.List<Coordinate> destinationLocations,
RouteResponseListener listener,
RouteOptions routeOptions) |
void |
requestRoutes(Coordinate startLocation,
java.util.List<Coordinate> destinationLocations,
RouteOptions routeOptions,
RoutesResponseListener listener)
Asynchronously requests up to the given number of route options between the given locations,
avoiding or disallowing the given route features.
|
void requestRoutes(Coordinate startLocation, java.util.List<Coordinate> destinationLocations, RouteOptions routeOptions, RoutesResponseListener listener)
If the first location is a Location
instance, its speed and bearing will be included in the request in order to help avoid
returning route options that would require the user to turn without sufficient warning or
begin in the opposite direction of travel.
startLocation
- The start location for the route.destinationLocations
- List of one or more destination locations to navigate to.routeOptions
- Route options used when requesting a route.listener
- Listener that is notified when a response is received.CallClaimcheck requestReroute(Coordinate startLocation, java.util.List<Coordinate> destinationLocations, RouteResponseListener listener, RouteOptions routeOptions)
boolean hasPendingRequests()
void cancelRouteRequests()