public enum UnitSystem extends java.lang.Enum<UnitSystem>
DirectionsRequest
.Enum Constant and Description |
---|
IMPERIAL
Specifies that distances in the
DirectionsResult should be expressed in imperial units. |
METRIC
Specifies that distances in the
DirectionsResult should be expressed in metric units. |
Modifier and Type | Method and Description |
---|---|
static UnitSystem |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnitSystem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitSystem IMPERIAL
DirectionsResult
should be expressed in imperial units.public static final UnitSystem METRIC
DirectionsResult
should be expressed in metric units.public static UnitSystem[] values()
for (UnitSystem c : UnitSystem.values()) System.out.println(c);
public static UnitSystem 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 null