TollFare constructor - TollFare - routing library - Dart API
TollFare
TollFare constructor
- String currency,
- double price,
- List<
PaymentMethod> paymentMethods, [ - TimeRule? timeRule = null,
- List<
String> transponders = const [],
Creates a new instance.
currencyThe currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".priceThe amount of the toll be paid.paymentMethodsThe list of accepted payment methods like cash and credit card.timeRuleThe 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 DomaintranspondersThe list of available transponders
Implementation
TollFare(String currency, double price, List<PaymentMethod> paymentMethods, [TimeRule? timeRule = null, List<String> transponders = const []])
: currency = currency, price = price, paymentMethods = paymentMethods, timeRule = timeRule, transponders = transponders;