public static enum TransitVehicle.TransitVehicleType extends Enum<TransitVehicle.TransitVehicleType> implements com.google.protobuf.ProtocolMessageEnum
The type of vehicles for transit routes.Protobuf enum
google.maps.routing.v2.TransitVehicle.TransitVehicleType| Enum Constant and 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.
|
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.
|
TRANSIT_VEHICLE_TYPE_UNSPECIFIED
Unused.
|
TROLLEYBUS
Trolleybus.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BUS_VALUE
Bus.
|
static int |
CABLE_CAR_VALUE
A vehicle that operates on a cable, usually on the ground.
|
static int |
COMMUTER_TRAIN_VALUE
Commuter rail.
|
static int |
FERRY_VALUE
Ferry.
|
static int |
FUNICULAR_VALUE
A vehicle that is pulled up a steep incline by a cable.
|
static int |
GONDOLA_LIFT_VALUE
An aerial cable car.
|
static int |
HEAVY_RAIL_VALUE
Heavy rail.
|
static int |
HIGH_SPEED_TRAIN_VALUE
High speed train.
|
static int |
INTERCITY_BUS_VALUE
Intercity bus.
|
static int |
LONG_DISTANCE_TRAIN_VALUE
Long distance train.
|
static int |
METRO_RAIL_VALUE
Light rail transit.
|
static int |
MONORAIL_VALUE
Monorail.
|
static int |
OTHER_VALUE
All other vehicles.
|
static int |
RAIL_VALUE
Rail.
|
static int |
SHARE_TAXI_VALUE
Share taxi is a kind of bus with the ability to drop off and pick up
passengers anywhere on its route.
|
static int |
SUBWAY_VALUE
Underground light rail.
|
static int |
TRAM_VALUE
Above ground light rail.
|
static int |
TRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUE
Unused.
|
static int |
TROLLEYBUS_VALUE
Trolleybus.
|
| Modifier and Type | Method and Description |
|---|---|
static TransitVehicle.TransitVehicleType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<TransitVehicle.TransitVehicleType> |
internalGetValueMap() |
static TransitVehicle.TransitVehicleType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TransitVehicle.TransitVehicleType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TransitVehicle.TransitVehicleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransitVehicle.TransitVehicleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransitVehicle.TransitVehicleType TRANSIT_VEHICLE_TYPE_UNSPECIFIED
Unused.
TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0;public static final TransitVehicle.TransitVehicleType BUS
Bus.
BUS = 1;public static final TransitVehicle.TransitVehicleType CABLE_CAR
A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type `GONDOLA_LIFT`.
CABLE_CAR = 2;public static final TransitVehicle.TransitVehicleType COMMUTER_TRAIN
Commuter rail.
COMMUTER_TRAIN = 3;public static final TransitVehicle.TransitVehicleType FERRY
Ferry.
FERRY = 4;public static final TransitVehicle.TransitVehicleType 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.
FUNICULAR = 5;public static final TransitVehicle.TransitVehicleType GONDOLA_LIFT
An aerial cable car.
GONDOLA_LIFT = 6;public static final TransitVehicle.TransitVehicleType HEAVY_RAIL
Heavy rail.
HEAVY_RAIL = 7;public static final TransitVehicle.TransitVehicleType HIGH_SPEED_TRAIN
High speed train.
HIGH_SPEED_TRAIN = 8;public static final TransitVehicle.TransitVehicleType INTERCITY_BUS
Intercity bus.
INTERCITY_BUS = 9;public static final TransitVehicle.TransitVehicleType LONG_DISTANCE_TRAIN
Long distance train.
LONG_DISTANCE_TRAIN = 10;public static final TransitVehicle.TransitVehicleType METRO_RAIL
Light rail transit.
METRO_RAIL = 11;public static final TransitVehicle.TransitVehicleType MONORAIL
Monorail.
MONORAIL = 12;public static final TransitVehicle.TransitVehicleType OTHER
All other vehicles.
OTHER = 13;public static final TransitVehicle.TransitVehicleType RAIL
Rail.
RAIL = 14;public static final TransitVehicle.TransitVehicleType SHARE_TAXI
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
SHARE_TAXI = 15;public static final TransitVehicle.TransitVehicleType SUBWAY
Underground light rail.
SUBWAY = 16;public static final TransitVehicle.TransitVehicleType TRAM
Above ground light rail.
TRAM = 17;public static final TransitVehicle.TransitVehicleType TROLLEYBUS
Trolleybus.
TROLLEYBUS = 18;public static final TransitVehicle.TransitVehicleType UNRECOGNIZED
public static final int TRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUE
Unused.
TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0;public static final int BUS_VALUE
Bus.
BUS = 1;public static final int CABLE_CAR_VALUE
A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type `GONDOLA_LIFT`.
CABLE_CAR = 2;public static final int COMMUTER_TRAIN_VALUE
Commuter rail.
COMMUTER_TRAIN = 3;public static final int FERRY_VALUE
Ferry.
FERRY = 4;public static final int FUNICULAR_VALUE
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.
FUNICULAR = 5;public static final int GONDOLA_LIFT_VALUE
An aerial cable car.
GONDOLA_LIFT = 6;public static final int HEAVY_RAIL_VALUE
Heavy rail.
HEAVY_RAIL = 7;public static final int HIGH_SPEED_TRAIN_VALUE
High speed train.
HIGH_SPEED_TRAIN = 8;public static final int INTERCITY_BUS_VALUE
Intercity bus.
INTERCITY_BUS = 9;public static final int LONG_DISTANCE_TRAIN_VALUE
Long distance train.
LONG_DISTANCE_TRAIN = 10;public static final int METRO_RAIL_VALUE
Light rail transit.
METRO_RAIL = 11;public static final int MONORAIL_VALUE
Monorail.
MONORAIL = 12;public static final int OTHER_VALUE
All other vehicles.
OTHER = 13;public static final int RAIL_VALUE
Rail.
RAIL = 14;public static final int SHARE_TAXI_VALUE
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
SHARE_TAXI = 15;public static final int SUBWAY_VALUE
Underground light rail.
SUBWAY = 16;public static final int TRAM_VALUE
Above ground light rail.
TRAM = 17;public static final int TROLLEYBUS_VALUE
Trolleybus.
TROLLEYBUS = 18;public static TransitVehicle.TransitVehicleType[] values()
for (TransitVehicle.TransitVehicleType c : TransitVehicle.TransitVehicleType.values()) System.out.println(c);
public static TransitVehicle.TransitVehicleType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static TransitVehicle.TransitVehicleType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static TransitVehicle.TransitVehicleType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<TransitVehicle.TransitVehicleType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static TransitVehicle.TransitVehicleType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.