Package com.google.maps.model
Enum VehicleType
- java.lang.Object
-
- java.lang.Enum<VehicleType>
-
- com.google.maps.model.VehicleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VehicleType>
public enum VehicleType extends java.lang.Enum<VehicleType>
The vehicle types.See Vehicle Type for more detail.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUS
Bus.CABLE_CAR
A vehicle that operates on a cable, usually on the ground.COMMUTER_TRAIN
Commuter rail.FERRY
Ferry.FUNICULAR
A vehicle that is pulled up a steep incline by a cable.GONDOLA_LIFT
An aerial cable car.HEAVY_RAIL
Heavy rail.HIGH_SPEED_TRAIN
High speed train.INTERCITY_BUS
Intercity bus.LONG_DISTANCE_TRAIN
Long distance train.METRO_RAIL
Light rail transit.MONORAIL
Monorail.OTHER
All other vehicles will return this type.RAIL
Rail.SHARE_TAXI
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.SUBWAY
Underground light rail.TRAM
Above ground light rail.TROLLEYBUS
Trolleybus.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VehicleType
valueOf(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 Detail
-
RAIL
public static final VehicleType RAIL
Rail.
-
METRO_RAIL
public static final VehicleType METRO_RAIL
Light rail transit.
-
SUBWAY
public static final VehicleType SUBWAY
Underground light rail.
-
TRAM
public static final VehicleType TRAM
Above ground light rail.
-
MONORAIL
public static final VehicleType MONORAIL
Monorail.
-
HEAVY_RAIL
public static final VehicleType HEAVY_RAIL
Heavy rail.
-
COMMUTER_TRAIN
public static final VehicleType COMMUTER_TRAIN
Commuter rail.
-
HIGH_SPEED_TRAIN
public static final VehicleType HIGH_SPEED_TRAIN
High speed train.
-
LONG_DISTANCE_TRAIN
public static final VehicleType LONG_DISTANCE_TRAIN
Long distance train.
-
BUS
public static final VehicleType BUS
Bus.
-
INTERCITY_BUS
public static final VehicleType INTERCITY_BUS
Intercity bus.
-
TROLLEYBUS
public static final VehicleType TROLLEYBUS
Trolleybus.
-
SHARE_TAXI
public static final VehicleType SHARE_TAXI
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
-
FERRY
public static final VehicleType FERRY
Ferry.
-
CABLE_CAR
public static final VehicleType CABLE_CAR
A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the typeGONDOLA_LIFT
.
-
GONDOLA_LIFT
public static final VehicleType GONDOLA_LIFT
An aerial cable car.
-
FUNICULAR
public static final VehicleType 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
public static final VehicleType OTHER
All other vehicles will return this type.
-
-
Method Detail
-
values
public static VehicleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VehicleType c : VehicleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VehicleType valueOf(java.lang.String name)
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
-
-