Enum Class TollStructureType

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

public enum TollStructureType extends Enum<TollStructureType>

This enum defines the type of toll structure used on a road segment or lane. Each value represents a different tolling mechanism used in road infrastructure. This enum helps in providing detailed tolling information for routing and navigation.

  • Enum Constant Details

    • FIXED_FEE

      public static final TollStructureType FIXED_FEE

      A toll with a fixed amount charged for using the segment

    • OBTAIN_TICKET

      public static final TollStructureType OBTAIN_TICKET

      The driver must obtain a ticket upon entry and pay upon exit

    • PAY_PER_TICKET

      public static final TollStructureType PAY_PER_TICKET

      Toll is paid based on a pre-obtained or virtual ticket

    • ELECTRONIC

      public static final TollStructureType ELECTRONIC

      Toll is collected electronically

  • Method Details

    • values

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