public class MapboxOptimizedTrips extends MapboxService<OptimizedTripsResponse>
Under normal plans, a maximum of 12 coordinates can be passed in at once at a maximum 60 requests per minute. For higher volumes, reach out through our contact page.
Note that for under 10 coordinates, the returned results will be optimal. For 10 and more coordinates, the results will be optimized approximations.
Modifier and Type | Class and Description |
---|---|
static class |
MapboxOptimizedTrips.Builder<T extends MapboxOptimizedTrips.Builder>
Optimized Trips v1 builder
|
Modifier and Type | Field and Description |
---|---|
protected MapboxOptimizedTrips.Builder |
builder |
Modifier | Constructor and Description |
---|---|
protected |
MapboxOptimizedTrips(MapboxOptimizedTrips.Builder builder) |
Modifier and Type | Method and Description |
---|---|
void |
cancelCall()
Cancel the call
|
retrofit2.Call<OptimizedTripsResponse> |
cloneCall()
clone the call
|
void |
enqueueCall(retrofit2.Callback<OptimizedTripsResponse> callback)
Execute the call
|
retrofit2.Response<OptimizedTripsResponse> |
executeCall()
Execute the call
|
getCallFactory, getHeaderUserAgent, getOkHttpClient, isEnableDebug, setCallFactory, setEnableDebug
protected MapboxOptimizedTrips.Builder builder
protected MapboxOptimizedTrips(MapboxOptimizedTrips.Builder builder)
public retrofit2.Response<OptimizedTripsResponse> executeCall() throws IOException
executeCall
in class MapboxService<OptimizedTripsResponse>
IOException
- Signals that an I/O exception of some sort has occurred.public void enqueueCall(retrofit2.Callback<OptimizedTripsResponse> callback)
enqueueCall
in class MapboxService<OptimizedTripsResponse>
callback
- A Retrofit callback.public void cancelCall()
cancelCall
in class MapboxService<OptimizedTripsResponse>
public retrofit2.Call<OptimizedTripsResponse> cloneCall()
cloneCall
in class MapboxService<OptimizedTripsResponse>
© 2015–2016 Mapbox. All rights reserved.