Class Toll
Class Toll
- java.lang.Object
-
- com.here.sdk.routing.Toll
-
public final class Toll extends java.lang.ObjectThis struct presents all the data for a toll.
Note: If you're using the
OfflineRoutingEngine, be aware that this feature is currently in beta. As a result, there may be some bugs or unexpected behaviors. Additionally, this feature and related APIs may be updated in future releases without going through the deprecation process. Note that theOfflineRoutingEngineis only available in editions like the Navigate Edition. If you're using theRoutingEngine, this feature is considered to be stable.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcountryCodeThe country in which the toll is to be paid in ISO-3166-1 alpha-3 format, e.g.java.util.List<TollFare>faresThe list of toll fares possible for the toll which may depend on time of day, payment method, vehicle characteristics, etc.java.util.List<java.lang.String>tollSystemsNames of the multiple toll systems which are associated with the toll, e.g.
-
Constructor Summary
Constructors Constructor Description Toll()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
countryCode
@NonNull public java.lang.String countryCode
The country in which the toll is to be paid in ISO-3166-1 alpha-3 format, e.g. "USA".
-
tollSystems
@NonNull public java.util.List<java.lang.String> tollSystems
Names of the multiple toll systems which are associated with the toll, e.g. ["ATLANDES“, "ASF", "COFIROUTE"]. When the toll information covers several toll roads and the toll system of the each road is different, all toll system names are listed here and the last element will be one of the exit toll booth.
-
fares
@NonNull public java.util.List<TollFare> fares
The list of toll fares possible for the toll which may depend on time of day, payment method, vehicle characteristics, etc. If there are multiple toll fares that the router cannot disambiguate, then the list will contain more than one toll fare. Note that this list contains at least one element, i.e. it is never empty.
-
-