Class FarePrice

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

public final class FarePrice extends Object

Price of a fare.

  • Field Details

    • type

      @NonNull public FarePriceType type

      Type of price represented by this object. Defaults to FarePriceType.VALUE.

    • 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 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 Details

    • FarePrice

      public FarePrice()

      Creates a new instance.

  • Method Details