目录

VehicleType

Enum Info

public enum VehicleType

交通工具类型枚举类。

Enum Value Summary

Enum Value and Description

INVALID(-1)

无效类型。

DRIVING(0)

驾车类型。

WALKING(1)

步行类型。

CYCLING(2)

骑行类型。

BUS(3)

公交类型。

Public Method Summary

Qualifier and Type

Method Name and Description

int

getType()

获取标识值。

static VehicleType

toVehicleType(int mode)

根据给定标识值获得具体的交通工具类型。

Public Methods

[h2]getType

Method

public int getType()

您调用此API可以获取交通工具类型的标识值。

Returns

Type

Description

int

交通工具类型的标识值。

[h2]toVehicleType

Method

public static VehicleType toVehicleType(int mode)

您调用此API可以根据给定标识值获得具体的交通工具类型。

Parameters

Name

Description

mode

给定的标识值。

Returns

Type

Description

VehicleType

交通工具类型。