public abstract class MapboxOptimization extends com.mapbox.core.MapboxService<OptimizationResponse,OptimizationService>
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 |
MapboxOptimization.Builder
Optimization v1 builder.
|
Modifier | Constructor and Description |
---|---|
protected |
MapboxOptimization() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
baseUrl() |
static MapboxOptimization.Builder |
builder()
Build a new
MapboxOptimization object with the initial values set for
baseUrl() , profile() , user() , and geometries() . |
protected com.google.gson.GsonBuilder |
getGsonBuilder() |
protected retrofit2.Call<OptimizationResponse> |
initializeCall() |
protected com.google.gson.GsonBuilder getGsonBuilder()
getGsonBuilder
in class com.mapbox.core.MapboxService<OptimizationResponse,OptimizationService>
protected retrofit2.Call<OptimizationResponse> initializeCall()
initializeCall
in class com.mapbox.core.MapboxService<OptimizationResponse,OptimizationService>
@NonNull protected abstract java.lang.String baseUrl()
baseUrl
in class com.mapbox.core.MapboxService<OptimizationResponse,OptimizationService>
public static MapboxOptimization.Builder builder()
MapboxOptimization
object with the initial values set for
baseUrl()
, profile()
, user()
, and geometries()
.MapboxOptimization.Builder
object for creating this object