Toll
public struct Toll : Hashable
This struct presents all the 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.
-
The country in which the toll is to be paid in ISO-3166-1 alpha-3 format, e.g. “USA”.
Declaration
Swift
public var countryCode: String -
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.
Declaration
Swift
public var tollSystems: [String] -
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.
Declaration
Swift
public var fares: [TollFare] -
Creates a new instance.
Declaration
Swift
public init(countryCode: String, tollSystems: [String], fares: [TollFare])