Enum Info |
|---|
public enum VehicleType 交通工具类型枚举类。 |
Enum Value and Description |
|---|
INVALID(-1) 无效类型。 |
DRIVING(0) 驾车类型。 |
WALKING(1) 步行类型。 |
CYCLING(2) 骑行类型。 |
BUS(3) 公交类型。 |
Qualifier and Type | Method Name and Description |
|---|---|
int | getType() 获取标识值。 |
static VehicleType | toVehicleType(int mode) 根据给定标识值获得具体的交通工具类型。 |
Method |
|---|
public int getType() 您调用此API可以获取交通工具类型的标识值。 |
Returns
Type | Description |
|---|---|
int | 交通工具类型的标识值。 |
Method |
|---|
public static VehicleType toVehicleType(int mode) 您调用此API可以根据给定标识值获得具体的交通工具类型。 |
Parameters
Name | Description |
|---|---|
mode | 给定的标识值。 |
Returns
Type | Description |
|---|---|
交通工具类型。 |