Class TollFare
Class TollFare
- java.lang.Object
-
- com.here.sdk.routing.TollFare
-
public final class TollFare extends java.lang.ObjectThis struct presents all the fare 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 theOfflineRoutingEngineis only available in editions like the Navigate Edition. If you're using theRoutingEngine, this feature is considered to be stable.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcurrencyThe currency in which the toll is to be paid in ISO 4217 format, e.g.java.util.List<PaymentMethod>paymentMethodsThe list of accepted payment methods like cash and credit card.doublepriceThe amount of the toll be paid.TimeRuletimeRuleThe time domain when this fare is valid.java.util.List<java.lang.String>transpondersThe 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 booleanequals(java.lang.Object obj)inthashCode()
-
-
-
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
-
-