Class Toll

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

public final class Toll extends 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 for the Navigate license. If you're using the RoutingEngine, this feature is considered to be stable.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The country in which the toll is to be paid in ISO-3166-1 alpha-3 format, e.g.
    The list of toll fares possible for the toll which may depend on time of day, payment method, vehicle characteristics, etc.
    Names of the multiple toll systems which are associated with the toll, e.g.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • countryCode

      @NonNull public 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 List<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 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 Details

    • Toll

      public Toll()
  • Method Details