public static enum RouteOptions.Type extends java.lang.Enum<RouteOptions.Type>
Note: a Type
has no effect on RouteOptions.TransportMode.PEDESTRIAN
transport mode, since
it always uses FASTEST
(if SHORTEST
is set as the Type
when one of
these TransportMode
types is selected, it will be reset to FASTEST
when a
Route
is calculated).
Enum Constant and Description |
---|
FASTEST
Search for the fastest route (minimizes travel time).
|
SHORTEST
Search for the shortest route (minimizes travel distance).
|
Modifier and Type | Method and Description |
---|---|
static RouteOptions.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RouteOptions.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RouteOptions.Type FASTEST
public static final RouteOptions.Type SHORTEST
public static RouteOptions.Type[] values()
for (RouteOptions.Type c : RouteOptions.Type.values()) System.out.println(c);
public static RouteOptions.Type 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