Enum SectionTransportMode
Package com.here.sdk.routing
Enum SectionTransportMode
- java.lang.Object
-
- java.lang.Enum<SectionTransportMode>
-
- com.here.sdk.routing.SectionTransportMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SectionTransportMode>
public enum SectionTransportMode extends java.lang.Enum<SectionTransportMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BICYCLEBicycle mode of transport.BUSBus mode of transport.CARCar mode of transport.CAR_SHUTTLE_TRAINMode of transport representing a shuttle train for cars.FERRYFerry mode of transport.PEDESTRIANPedestrian mode of transport.PRIVATE_BUSPrivate bus mode of transport.PUBLIC_TRANSITA section with this mode is part of a public transit route.SCOOTERScooter mode of transport.TAXITaxi mode of transport.TRUCKTruck mode of transport.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SectionTransportModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SectionTransportMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CAR
public static final SectionTransportMode CAR
Car mode of transport.
-
TRUCK
public static final SectionTransportMode TRUCK
Truck mode of transport.
-
PEDESTRIAN
public static final SectionTransportMode PEDESTRIAN
Pedestrian mode of transport.
-
FERRY
public static final SectionTransportMode FERRY
Ferry mode of transport.
-
CAR_SHUTTLE_TRAIN
public static final SectionTransportMode CAR_SHUTTLE_TRAIN
Mode of transport representing a shuttle train for cars.
-
SCOOTER
public static final SectionTransportMode SCOOTER
Scooter mode of transport.
-
BICYCLE
public static final SectionTransportMode BICYCLE
Bicycle mode of transport.
-
PUBLIC_TRANSIT
public static final SectionTransportMode PUBLIC_TRANSIT
A section with this mode is part of a public transit route. The actual transport mode can be obtained from
Section.getTransitDetails().
-
TAXI
public static final SectionTransportMode TAXI
Taxi mode of transport.
-
BUS
public static final SectionTransportMode BUS
Bus mode of transport. Denotes those vehicles operated by public transport provider. This transport mode has the access to the bus-only lane/road.
-
PRIVATE_BUS
public static final SectionTransportMode PRIVATE_BUS
Private bus mode of transport. Denotes those vehicles operated by private transport company. This transport mode does not have the access to the bus-only lane/road.
-
-
Method Detail
-
values
public static SectionTransportMode[] 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 (SectionTransportMode c : SectionTransportMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SectionTransportMode 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
-
-