| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract Exclude |
build()
Builds the object.
|
abstract Exclude.Builder |
criteria(java.util.List<java.lang.String> criteria)
Exclude certain road types from routing.
|
abstract Exclude.Builder |
points(java.util.List<com.mapbox.geojson.Point> points)
Exclude certain points from routing.
|
T |
unrecognizedJsonProperties(java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
Use this method to add parameters which are not present in the model yet but are supported
on the Directions API side in the response.
|
public abstract Exclude.Builder criteria(@Nullable java.util.List<java.lang.String> criteria)
DirectionsCriteria.PROFILE_DRIVING: One of DirectionsCriteria.EXCLUDE_TOLL,
DirectionsCriteria.EXCLUDE_MOTORWAY, or DirectionsCriteria.EXCLUDE_FERRY.
DirectionsCriteria.PROFILE_DRIVING_TRAFFIC: One of
DirectionsCriteria.EXCLUDE_TOLL, DirectionsCriteria.EXCLUDE_MOTORWAY, or
DirectionsCriteria.EXCLUDE_FERRY.
DirectionsCriteria.PROFILE_WALKING: No excludes supported
DirectionsCriteria.PROFILE_CYCLING: DirectionsCriteria.EXCLUDE_FERRY
criteria - a list of exclude criteria
matching DirectionsCriteria.ExcludeCriteriapublic abstract Exclude.Builder points(@Nullable java.util.List<com.mapbox.geojson.Point> points)
points - a list of points to exclude.@NonNull
public T unrecognizedJsonProperties(@Nullable
java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
unrecognizedProperties - parameters to add to request