TollCost
public struct TollCost : Hashable
Contains informations about the toll costs for a specific vehicle profile.
-
The currency in which the toll is to be paid in ISO 4217 format, e.g. “USD”.
Declaration
Swift
public var currency: String -
The amount of currency to be paid for the toll.
Declaration
Swift
public var price: Double -
The list of accepted payment methods like cash and credit card.
Declaration
Swift
public var paymentMethods: [PaymentMethod] -
Indicates if the toll cost is based on the distance traveled. Defaults to
false.Declaration
Swift
public var isPriceCalculatedPerKilometer: Bool -
List of vehicle profile containing vehicle characteristics for which the toll cost applies.
Declaration
Swift
@available(*, deprecated, message: "Will be removed in v4.28.0. Use the `TollCost.transport_specifications` instead.") public var vehicleProfiles: [VehicleProfile] -
List of transport specifications containing the vehicle characteristics for which the toll cost applies.
Declaration
Swift
public var transportSpecifications: [TransportSpecification] -
Creates a new instance.
Declaration
Swift
public init(currency: String, price: Double = 0.0, paymentMethods: [PaymentMethod] = [], isPriceCalculatedPerKilometer: Bool = false, transportSpecifications: [TransportSpecification] = []) -
init(currency:price: paymentMethods: isPriceCalculatedPerKilometer: vehicleProfiles: transportSpecifications: ) Creates a new instance.
Declaration
Swift
@available(*, deprecated) public init(currency: String, price: Double = 0.0, paymentMethods: [PaymentMethod] = [], isPriceCalculatedPerKilometer: Bool = false, vehicleProfiles: [VehicleProfile] = [], transportSpecifications: [TransportSpecification] = [])