com.google.maps.internal.StringJoin.UrlValue, java.io.Serializable, java.lang.Comparable<DirectionsApi.RouteRestriction>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 | Description |
|---|---|
FERRIES |
Indicates that the calculated route should avoid ferries.
|
HIGHWAYS |
Indicates that the calculated route should avoid highways.
|
TOLLS |
Indicates that the calculated route should avoid toll roads/bridges.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
toString() |
|
java.lang.String |
toUrlValue() |
|
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
public static final DirectionsApi.RouteRestriction HIGHWAYS
public static final DirectionsApi.RouteRestriction 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>public java.lang.String toUrlValue()
toUrlValue in interface com.google.maps.internal.StringJoin.UrlValue