Class FarePrice

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

  • public final class FarePrice
    extends java.lang.Object

    Price of a fare.

    • Constructor Summary

      Constructors 
      Constructor Description
      FarePrice()
      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

      • estimated

        public boolean estimated

        True when the fare price is estimated based on best guess and the actual price may differ. Defaults to false.

      • currency

        @NonNull
        public java.lang.String currency

        Local currency of the price compliant to ISO 4217. For example, "GBP" for the British pound sterling. Defaults to "EUR" string.

      • minimum

        public double minimum

        Minimum price when the price is of FarePriceType.RANGE type. Otherwise, it is equal to maximum. Defaults to 0.

      • maximum

        public double maximum

        Maximum price when the price is of FarePriceType.RANGE type. Otherwise, it is equal to minimum. Defaults to 0.

      • validityPeriod

        @Nullable
        public Duration validityPeriod

        When set, the price is paid for a specific duration.

        Examples:

        3600 seconds - price for one hour

        28800 seconds - price for eight hours

        86400 seconds - price for one day

        Note: When the ticket validity period starts depends on the Agency providing the service. Defaults to null.

    • Constructor Detail

      • FarePrice

        public FarePrice()

        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