public static enum RouteSearchV2.DrivingStrategy extends java.lang.Enum<RouteSearchV2.DrivingStrategy>
枚举常量和说明 |
---|
AVOID_CONGESTION
躲避拥堵
|
AVOID_CONGESTION_AVOID_HIGHWAY
躲避拥堵+不走高速
|
AVOID_CONGESTION_HIGHWAY_PRIORITY
躲避拥堵+高速优先
|
AVOID_CONGESTION_LESS_CHARGE
躲避拥堵+少收费
|
AVOID_CONGESTION_LESS_CHARGE_AVOID_HIGHWAY
躲避拥堵+少收费+不走高速
|
AVOID_CONGESTION_ROAD_PRIORITY
躲避拥堵+大路优先
|
AVOID_CONGESTION_SPEED_PRIORITY
躲避拥堵+速度最快
|
AVOID_HIGHWAY
不走高速
|
DEFAULT
默认,高德推荐,同高德地图APP默认
|
HIGHWAY_PRIORITY
高速优先
|
LESS_CHARGE
少收费
|
LESS_CHARGE_AVOID_HIGHWAY
少收费+不走高速
|
ROAD_PRIORITY
大路优先
|
SPEED_PRIORITY
速度最快
|
限定符和类型 | 方法和说明 |
---|---|
static RouteSearchV2.DrivingStrategy |
fromValue(int value) |
int |
getValue() |
static RouteSearchV2.DrivingStrategy |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static RouteSearchV2.DrivingStrategy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RouteSearchV2.DrivingStrategy DEFAULT
public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION
public static final RouteSearchV2.DrivingStrategy HIGHWAY_PRIORITY
public static final RouteSearchV2.DrivingStrategy AVOID_HIGHWAY
public static final RouteSearchV2.DrivingStrategy LESS_CHARGE
public static final RouteSearchV2.DrivingStrategy ROAD_PRIORITY
public static final RouteSearchV2.DrivingStrategy SPEED_PRIORITY
public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_HIGHWAY_PRIORITY
public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_AVOID_HIGHWAY
public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_LESS_CHARGE
public static final RouteSearchV2.DrivingStrategy LESS_CHARGE_AVOID_HIGHWAY
public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_LESS_CHARGE_AVOID_HIGHWAY
public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_ROAD_PRIORITY
public static final RouteSearchV2.DrivingStrategy AVOID_CONGESTION_SPEED_PRIORITY
public static RouteSearchV2.DrivingStrategy[] values()
for (RouteSearchV2.DrivingStrategy c : RouteSearchV2.DrivingStrategy.values()) System.out.println(c);
public static RouteSearchV2.DrivingStrategy valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getValue()
public static RouteSearchV2.DrivingStrategy fromValue(int value)