public abstract class MapboxMatrix extends com.mapbox.core.MapboxService<MatrixResponse,MatrixService>
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.
Modifier and Type | Class and Description |
---|---|
static class |
MapboxMatrix.Builder
This builder is used to create a new request to the Mapbox Matrix API.
|
Modifier | Constructor and Description |
---|---|
protected |
MapboxMatrix() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
baseUrl() |
static MapboxMatrix.Builder |
builder()
|
protected com.google.gson.GsonBuilder |
getGsonBuilder() |
protected retrofit2.Call<MatrixResponse> |
initializeCall() |
protected com.google.gson.GsonBuilder getGsonBuilder()
getGsonBuilder
in class com.mapbox.core.MapboxService<MatrixResponse,MatrixService>
protected retrofit2.Call<MatrixResponse> initializeCall()
initializeCall
in class com.mapbox.core.MapboxService<MatrixResponse,MatrixService>
@NonNull protected abstract java.lang.String baseUrl()
baseUrl
in class com.mapbox.core.MapboxService<MatrixResponse,MatrixService>
public static MapboxMatrix.Builder builder()
MapboxMatrix.Builder
object for creating this object