Class TollOptions

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

  • public final class TollOptions
    extends java.lang.Object

    The option to specify how the tolls should be calculated. Note Not used for offline calculations.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Integer co2Class
      Defines the CO2 class of the vehicle as defined by the toll operator.
      TollOptions.EmissionType emissionType
      Defines the emission type as defined by the toll operator for toll calculation based on vehicle emissions class.
      java.util.List<java.lang.String> transponders
      Specifies the toll collection systems for which the user has valid transponders.
      TollOptions.VehicleCategory vehicleCategory
      Defines special vehicle category for toll calculation.
    • Constructor Summary

      Constructors 
      Constructor Description
      TollOptions()
      Creates a new instance.
    • 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

      • transponders

        @NonNull
        public java.util.List<java.lang.String> transponders

        Specifies the toll collection systems for which the user has valid transponders. Note: currently, the only valid value is "all". This means the user has a transponder that is accepted by all toll systems.

      • vehicleCategory

        @Nullable
        public TollOptions.VehicleCategory vehicleCategory

        Defines special vehicle category for toll calculation. Usual types like car or truck are determined from transport mode.

      • emissionType

        @Nullable
        public TollOptions.EmissionType emissionType

        Defines the emission type as defined by the toll operator for toll calculation based on vehicle emissions class. The emission type is based on the European emission standards (Euro 1 to Euro 6, and Euro EEV).

      • co2Class

        @Nullable
        public java.lang.Integer co2Class

        Defines the CO2 class of the vehicle as defined by the toll operator. CO2 class is used with emissionType. Allowed values for CO2 class are 1, 2, 3, 4, or 5, where a lower value generally indicates lower CO2 emissions.

    • Constructor Detail

      • TollOptions

        public TollOptions()

        Creates a new instance.

    • 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