Toll constructor

Toll(
  1. String countryCode,
  2. List<String> tollSystems,
  3. List<TollFare> fares
)

Creates a new instance.

  • countryCode The country in which the toll is to be paid in ISO-3166-1 alpha-3 format, e.g. "USA".
  • tollSystems Names of the multiple toll systems which are associated with the toll, e.g. ["ATLANDES“, "ASF", "COFIROUTE"]. When the toll information covers several toll roads and the toll system of the each road is different, all toll system names are listed here and the last element will be one of the exit toll booth.
  • fares The list of toll fares possible for the toll which may depend on time of day, payment method, vehicle characteristics, etc. If there are multiple toll fares that the router cannot disambiguate, then the list will contain more than one toll fare. Note that this list contains at least one element, i.e. it is never empty.

Implementation

Toll(this.countryCode, this.tollSystems, this.fares);