Enum Class SectionTransportMode

java.lang.Object
java.lang.Enum<SectionTransportMode>
com.here.sdk.routing.SectionTransportMode
All Implemented Interfaces:
Serializable, Comparable<SectionTransportMode>, Constable

public enum SectionTransportMode extends Enum<SectionTransportMode>

Specifies the Section mode of transport. A Section may have a different transport mode than the one specified for route calculation. For example, a car route may have a section having ferry transport mode.

  • Enum Constant Details

    • 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 Details

    • values

      public static SectionTransportMode[] 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

      public static SectionTransportMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null