public class MapboxDirectionsMatrix extends MapboxService<DirectionsMatrixResponse>
This API allows you to build tools that efficiently check the reachability of coordinates from each other, filter points by travel time, or run your own algorithms for solving optimization problems.
The standard limit for request are a maximum 60 requests per minute and maximum 25 input coordinates. For example you can request a symmetric 25x25 matrix, an asymmetric 1x24 matrix with distinct coordinates or a 12x24 where sources and destinations share some coordinates. For higher volumes contact us.
This replace the distance.v1 API
| Modifier and Type | Class and Description |
|---|---|
static class |
MapboxDirectionsMatrix.Builder<T extends MapboxDirectionsMatrix.Builder>
Directions Matrix v1 builder
|
| Modifier and Type | Field and Description |
|---|---|
protected MapboxDirectionsMatrix.Builder |
builder |
| Modifier | Constructor and Description |
|---|---|
protected |
MapboxDirectionsMatrix(MapboxDirectionsMatrix.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCall()
Cancel the call
|
retrofit2.Call<DirectionsMatrixResponse> |
cloneCall()
clone the call
|
void |
enqueueCall(retrofit2.Callback<DirectionsMatrixResponse> callback)
Execute the call
|
retrofit2.Response<DirectionsMatrixResponse> |
executeCall()
Execute the call
|
getCallFactory, getHeaderUserAgent, getOkHttpClient, isEnableDebug, setCallFactory, setEnableDebugprotected MapboxDirectionsMatrix.Builder builder
protected MapboxDirectionsMatrix(MapboxDirectionsMatrix.Builder builder)
public retrofit2.Response<DirectionsMatrixResponse> executeCall() throws java.io.IOException
executeCall in class MapboxService<DirectionsMatrixResponse>java.io.IOException - Signals that an I/O exception of some sort has occurred.public void enqueueCall(retrofit2.Callback<DirectionsMatrixResponse> callback)
enqueueCall in class MapboxService<DirectionsMatrixResponse>callback - A Retrofit callback.public void cancelCall()
cancelCall in class MapboxService<DirectionsMatrixResponse>public retrofit2.Call<DirectionsMatrixResponse> cloneCall()
cloneCall in class MapboxService<DirectionsMatrixResponse>