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

  • public final class TollFare
    extends java.lang.Object

    This struct presents all the fare data for a toll.

    Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String currency
      The currency in which the toll is to be paid in ISO 4217 format, e.g.
      java.util.List<PaymentMethod> paymentMethods
      The list of accepted payment methods like cash and credit card.
      double price
      The amount of the toll be paid.
      TimeRule timeRule
      The time domain when this fare is valid.
      java.util.List<java.lang.String> transponders
      The list of available transponders
    • Constructor Summary

      Constructors 
      Constructor Description
      TollFare​(java.lang.String currency, double price, java.util.List<PaymentMethod> paymentMethods)
      Creates a new instance.
      TollFare​(java.lang.String currency, double price, java.util.List<PaymentMethod> paymentMethods, TimeRule timeRule)
      Creates a new instance.
      TollFare​(java.lang.String currency, double price, java.util.List<PaymentMethod> paymentMethods, TimeRule timeRule, java.util.List<java.lang.String> transponders)
      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

      • currency

        @NonNull
        public java.lang.String currency

        The currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".

      • price

        public double price

        The amount of the toll be paid.

      • paymentMethods

        @NonNull
        public java.util.List<PaymentMethod> paymentMethods

        The list of accepted payment methods like cash and credit card.

      • timeRule

        @Nullable
        public TimeRule timeRule

        The time domain when this fare is valid. If this field is missing, it means the fare is always valid. For a detailed description of the Time Domain specification and usage in routing services, please refer to the documentation available in the Time Domain

      • transponders

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

        The list of available transponders

    • Constructor Detail

      • TollFare

        public TollFare​(@NonNull
                        java.lang.String currency,
                        double price,
                        @NonNull
                        java.util.List<PaymentMethod> paymentMethods)

        Creates a new instance.

        Parameters:
        currency -

        The currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".

        price -

        The amount of the toll be paid.

        paymentMethods -

        The list of accepted payment methods like cash and credit card.

      • TollFare

        public TollFare​(@NonNull
                        java.lang.String currency,
                        double price,
                        @NonNull
                        java.util.List<PaymentMethod> paymentMethods,
                        @Nullable
                        TimeRule timeRule)

        Creates a new instance.

        Parameters:
        currency -

        The currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".

        price -

        The amount of the toll be paid.

        paymentMethods -

        The list of accepted payment methods like cash and credit card.

        timeRule -

        The time domain when this fare is valid. If this field is missing, it means the fare is always valid. For a detailed description of the Time Domain specification and usage in routing services, please refer to the documentation available in the Time Domain

      • TollFare

        public TollFare​(@NonNull
                        java.lang.String currency,
                        double price,
                        @NonNull
                        java.util.List<PaymentMethod> paymentMethods,
                        @Nullable
                        TimeRule timeRule,
                        @NonNull
                        java.util.List<java.lang.String> transponders)

        Creates a new instance.

        Parameters:
        currency -

        The currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".

        price -

        The amount of the toll be paid.

        paymentMethods -

        The list of accepted payment methods like cash and credit card.

        timeRule -

        The time domain when this fare is valid. If this field is missing, it means the fare is always valid. For a detailed description of the Time Domain specification and usage in routing services, please refer to the documentation available in the Time Domain

        transponders -

        The list of available transponders

    • 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