Package ai.nextbillion.maps.model
Enum VehicleType
java.lang.Object
java.lang.Enum<VehicleType>
ai.nextbillion.maps.model.VehicleType
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VehicleType>,java.lang.constant.Constable
public enum VehicleType extends java.lang.Enum<VehicleType>
The vehicle types.
See Vehicle Type for more detail.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description BUSBus.CABLE_CARA vehicle that operates on a cable, usually on the ground.COMMUTER_TRAINCommuter rail.FERRYFerry.FUNICULARA vehicle that is pulled up a steep incline by a cable.GONDOLA_LIFTAn aerial cable car.HEAVY_RAILHeavy rail.HIGH_SPEED_TRAINHigh speed train.INTERCITY_BUSIntercity bus.METRO_RAILLight rail transit.MONORAILMonorail.OTHERAll other vehicles will return this type.RAILRail.SHARE_TAXIShare taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.SUBWAYUnderground light rail.TRAMAbove ground light rail.TROLLEYBUSTrolleybus. -
Method Summary
Modifier and Type Method Description static VehicleTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static VehicleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RAIL
Rail. -
METRO_RAIL
Light rail transit. -
SUBWAY
Underground light rail. -
TRAM
Above ground light rail. -
MONORAIL
Monorail. -
HEAVY_RAIL
Heavy rail. -
COMMUTER_TRAIN
Commuter rail. -
HIGH_SPEED_TRAIN
High speed train. -
BUS
Bus. -
INTERCITY_BUS
Intercity bus. -
TROLLEYBUS
Trolleybus. -
SHARE_TAXI
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route. -
FERRY
Ferry. -
CABLE_CAR
A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the typeGONDOLA_LIFT. -
GONDOLA_LIFT
An aerial cable car. -
FUNICULAR
A vehicle that is pulled up a steep incline by a cable. A Funicular typically consists of two cars, with each car acting as a counterweight for the other. -
OTHER
All other vehicles will return this type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-