@Deprecated public class MapboxDistance extends MapboxService<DistanceResponse>
The Mapbox Distance API returns all travel times between many points. For example, given 3 locations A, B, C, the Distance API will return a matrix of travel times in seconds between each location. This API allows you to build tools that efficiently check the reachability of coordinates from each other, filter points by travel time, or run algorithms for solving optimization problems.
Limits placed on this API include a maximum 100 coordinate pairs per request and a maximum 60 requests per minute.
Modifier and Type | Class and Description |
---|---|
static class |
MapboxDistance.Builder<T extends MapboxDistance.Builder>
Deprecated.
replace by the Directions Matrix API.
|
Modifier and Type | Field and Description |
---|---|
protected MapboxDistance.Builder |
builder
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
MapboxDistance(MapboxDistance.Builder builder)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelCall()
Deprecated.
replace by the Directions Matrix API.
|
retrofit2.Call<DistanceResponse> |
cloneCall()
Deprecated.
replace by the Directions Matrix API.
|
void |
enqueueCall(retrofit2.Callback<DistanceResponse> callback)
Deprecated.
replace by the Directions Matrix API.
|
retrofit2.Response<DistanceResponse> |
executeCall()
Deprecated.
replace by the Directions Matrix API.
|
retrofit2.Call<DistanceResponse> |
getCall()
Deprecated.
replace by the Directions Matrix API.
|
protected com.google.gson.Gson |
getGson()
Deprecated.
|
getCallFactory, getHeaderUserAgent, getOkHttpClient, isEnableDebug, setCallFactory, setEnableDebug
protected MapboxDistance.Builder builder
@Deprecated protected MapboxDistance(MapboxDistance.Builder builder)
@Deprecated protected com.google.gson.Gson getGson()
@Deprecated public retrofit2.Call<DistanceResponse> getCall()
@Deprecated public retrofit2.Response<DistanceResponse> executeCall() throws IOException
executeCall
in class MapboxService<DistanceResponse>
IOException
- Signals that an I/O exception of some sort has occurred.@Deprecated public void enqueueCall(retrofit2.Callback<DistanceResponse> callback)
enqueueCall
in class MapboxService<DistanceResponse>
callback
- A Retrofit callback.@Deprecated public void cancelCall()
cancelCall
in class MapboxService<DistanceResponse>
@Deprecated public retrofit2.Call<DistanceResponse> cloneCall()
cloneCall
in class MapboxService<DistanceResponse>
© 2015–2016 Mapbox. All rights reserved.