public abstract class MapboxIsochrone extends com.mapbox.core.MapboxService<com.mapbox.geojson.FeatureCollection,IsochroneService>
Given a location and a routing profile, retrieve up to four isochrone contours. The contours are calculated using rasters and are returned as either polygon or line features, depending on your input setting for the polygons parameter.
The Isochrone API is limited to 300 requests per minute. The Isochrone API supports 1 coordinate per request. The Isochrone API can support a maximum of 4 isochrone contours per request. The maximum time that can be specified for an isochrone contour is 60 minutes. Results must be displayed on a Mapbox map using one of the Mapbox libraries or SDKs. If you require a higher rate limit, contact us.
Modifier and Type | Class and Description |
---|---|
static class |
MapboxIsochrone.Builder
This builder is used to create a new request to the Mapbox Isochrone API.
|
Modifier | Constructor and Description |
---|---|
protected |
MapboxIsochrone() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
baseUrl() |
static MapboxIsochrone.Builder |
builder()
Build a new
MapboxIsochrone object with the initial value set for
baseUrl() . |
protected com.google.gson.GsonBuilder |
getGsonBuilder() |
protected retrofit2.Call<com.mapbox.geojson.FeatureCollection> |
initializeCall() |
protected com.google.gson.GsonBuilder getGsonBuilder()
getGsonBuilder
in class com.mapbox.core.MapboxService<com.mapbox.geojson.FeatureCollection,IsochroneService>
protected retrofit2.Call<com.mapbox.geojson.FeatureCollection> initializeCall()
initializeCall
in class com.mapbox.core.MapboxService<com.mapbox.geojson.FeatureCollection,IsochroneService>
public static MapboxIsochrone.Builder builder()
MapboxIsochrone
object with the initial value set for
baseUrl()
.MapboxIsochrone.Builder
object for creating this object@NonNull protected abstract java.lang.String baseUrl()
baseUrl
in class com.mapbox.core.MapboxService<com.mapbox.geojson.FeatureCollection,IsochroneService>