We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

VehicleType

Expand

Enum Info

public enum VehicleType

Transport mode enumeration class.

Enum Value Summary

Expand

Enum Value and Description

INVALID(-1)

Invalid.

DRIVING(0)

Driving.

WALKING(1)

Walking.

CYCLING(2)

Cycling.

BUS(3)

Public transit.

Public Method Summary

Expand

Qualifier and Type

Method Name and Description

int

getType()

Obtains the transport mode ID.

static VehicleType

toVehicleType(int mode)

Obtains the transport mode based on the specified ID.

Public Methods

getType

Expand

Method

public int getType()

Obtains the transport mode ID.

Returns

Expand

Type

Description

int

Transport mode ID.

toVehicleType

Expand

Method

public static VehicleType toVehicleType(int mode)

Obtains the transport mode based on the specified ID.

Parameters

Expand

Name

Description

mode

Specified ID.

Returns

Expand

Type

Description

VehicleType

Transport mode.

Search in References
Enter a keyword.