TollFare class

This 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 the OfflineRoutingEngine is only available for the Navigate license. If you're using the RoutingEngine, this feature is considered to be stable.

Constructors

TollFare(String currency, double price, List<PaymentMethod> paymentMethods, [TimeRule? timeRule = null, List<String> transponders = const [], TollFarePass? pass = null])
Creates a new instance.

Properties

currency ↔ String
The currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".
getter/setter pair
hashCode → int
The hash code for this object.
no setter
pass TollFarePass?
Specifies whether this TollFare is a multi-travel pass, and its characteristics.
getter/setter pair
paymentMethods ↔ List<PaymentMethod>
The list of accepted payment methods like cash and credit card.
getter/setter pair
price ↔ double
The amount of the toll be paid.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
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
getter/setter pair
transponders ↔ List<String>
The list of available transponders.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.