SectionTransportMode (API Reference)
Package com.here.sdk.routing
Enum Class SectionTransportMode
- All Implemented Interfaces:
Serializable,Comparable<SectionTransportMode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBicycle mode of transport.Bus mode of transport.Car mode of transport.Mode of transport representing a shuttle train for cars.Ferry mode of transport.Pedestrian mode of transport.Private bus mode of transport.A section with this mode is part of a public transit route.Scooter mode of transport.Taxi mode of transport.Truck mode of transport. -
Method Summary
Modifier and TypeMethodDescriptionstatic SectionTransportModeReturns the enum constant of this class with the specified name.static SectionTransportMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CAR
Car mode of transport.
-
TRUCK
Truck mode of transport.
-
PEDESTRIAN
Pedestrian mode of transport.
-
FERRY
Ferry mode of transport.
-
CAR_SHUTTLE_TRAIN
Mode of transport representing a shuttle train for cars.
-
SCOOTER
Scooter mode of transport.
-
BICYCLE
Bicycle mode of transport.
-
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
Taxi mode of transport.
-
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
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-