TollOptions

public struct TollOptions : Hashable

The option to specify how the tolls should be calculated. Note Not used for offline calculations.

  • Specifies the toll collection systems for which the user has valid transponders. Note: currently, the only valid value is “all”. This means the user has a transponder that is accepted by all toll systems.

    Declaration

    Swift

    public var transponders: [String]
  • Defines special vehicle category for toll calculation. Usual types like car or truck are determined from transport mode.

    Declaration

    Swift

    public var vehicleCategory: TollOptions.VehicleCategory?
  • Defines the emission type as defined by the toll operator for toll calculation based on vehicle emissions class. The emission type is based on the European emission standards (Euro 1 to Euro 6, and Euro EEV).

    Declaration

    Swift

    public var emissionType: TollOptions.EmissionType?
  • Defines the CO2 class of the vehicle as defined by the toll operator. CO2 class is used with emissionType. Allowed values for CO2 class are 1, 2, 3, 4, or 5, where a lower value generally indicates lower CO2 emissions.

    Declaration

    Swift

    public var co2Class: Int32?
  • Creates a new instance.

    Declaration

    Swift

    public init(transponders: [String] = [], vehicleCategory: TollOptions.VehicleCategory? = nil, emissionType: TollOptions.EmissionType? = nil, co2Class: Int32? = nil)
  • Supported options of vehicle category for toll calculation.

    See more

    Declaration

    Swift

    public enum VehicleCategory : UInt32, CaseIterable, Codable
  • Supported options of emission type

    See more

    Declaration

    Swift

    public enum EmissionType : UInt32, CaseIterable, Codable