TollStructureType (API Reference)
Package com.here.sdk.mapdata
Enum Class TollStructureType
- All Implemented Interfaces:
Serializable,Comparable<TollStructureType>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionToll is collected electronicallyA toll with a fixed amount charged for using the segmentThe driver must obtain a ticket upon entry and pay upon exitToll is paid based on a pre-obtained or virtual ticket -
Method Summary
Modifier and TypeMethodDescriptionstatic TollStructureTypeReturns the enum constant of this class with the specified name.static TollStructureType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED_FEE
A toll with a fixed amount charged for using the segment
-
OBTAIN_TICKET
The driver must obtain a ticket upon entry and pay upon exit
-
PAY_PER_TICKET
Toll is paid based on a pre-obtained or virtual ticket
-
ELECTRONIC
Toll is collected electronically
-
-
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
-