Class Toll

  • java.lang.Object
    • com.here.sdk.routing.Toll

  • public final class Toll
    extends java.lang.Object

    This 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 the OfflineRoutingEngine is only available in editions like the Navigate Edition. If you're using the RoutingEngine, this feature is considered to be stable.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String countryCode
      The country in which the toll is to be paid in ISO-3166-1 alpha-3 format, e.g.
      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.
      java.util.List<java.lang.String> tollSystems
      Names 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
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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.

    • Constructor Detail

      • Toll

        public Toll()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object