public enum SortBy extends java.lang.Enum<SortBy>
IAlongRouteSearchQuery.withSortBy(SortBy)
method to sort the results by a proper
criteria.Enum Constant and Description |
---|
DETOUR_DISTANCE
Sort by detour distance.
|
DETOUR_OFFSET
Sort by detour offset.
|
DETOUR_TIME
Sort by detour time.
|
Modifier and Type | Method and Description |
---|---|
static SortBy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SortBy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortBy DETOUR_TIME
public static final SortBy DETOUR_DISTANCE
public static final SortBy DETOUR_OFFSET
public static SortBy[] values()
for (SortBy c : SortBy.values()) System.out.println(c);
public static SortBy 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