public abstract class Exclude extends DirectionsJsonObject
RouteOptions.Builder.excludeObject(Exclude)
.
This class provides type-safe way to read and build RouteOptions.exclude()
parameter.
All properties are strictly categorized after parsing. Unknown data types or flags
are ignored. If you want to work with exclude criteria which is not yet supported,
consider using raw RouteOptions.exclude()
directly.Modifier and Type | Class and Description |
---|---|
static class |
Exclude.Builder
Use this builder to build an
Exclude object. |
Constructor and Description |
---|
Exclude() |
Modifier and Type | Method and Description |
---|---|
static Exclude.Builder |
builder()
Build a new instance of
Exclude . |
abstract java.util.List<java.lang.String> |
criteria()
Exclude certain road types from routing.
|
abstract java.util.List<com.mapbox.geojson.Point> |
points()
Exclude certain points from routing.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson
@NonNull public static Exclude.Builder builder()
Exclude
. Nothing is excluded by default.@Nullable public abstract 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
DirectionsCriteria.ExcludeCriteria
exclusions@Nullable public abstract java.util.List<com.mapbox.geojson.Point> points()