public static enum DirectionsApi.RouteRestriction extends java.lang.Enum<DirectionsApi.RouteRestriction> implements com.google.maps.internal.StringJoin.UrlValue
DirectionsApiRequest.avoid(com.google.maps.DirectionsApi.RouteRestriction...)
or
DistanceMatrixApiRequest.avoid(com.google.maps.DirectionsApi.RouteRestriction)
.Enum Constant and Description |
---|
FERRIES
FERRIES indicates that the calculated route should avoid ferries. |
HIGHWAYS
HIGHWAYS indicates that the calculated route should avoid highways. |
TOLLS
TOLLS indicates that the calculated route should avoid toll roads/bridges. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static DirectionsApi.RouteRestriction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DirectionsApi.RouteRestriction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DirectionsApi.RouteRestriction TOLLS
TOLLS
indicates that the calculated route should avoid toll roads/bridges.public static final DirectionsApi.RouteRestriction HIGHWAYS
HIGHWAYS
indicates that the calculated route should avoid highways.public static final DirectionsApi.RouteRestriction FERRIES
FERRIES
indicates that the calculated route should avoid ferries.public static DirectionsApi.RouteRestriction[] values()
for (DirectionsApi.RouteRestriction c : DirectionsApi.RouteRestriction.values()) System.out.println(c);
public static DirectionsApi.RouteRestriction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<DirectionsApi.RouteRestriction>