public struct TollOptions : Hashable

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

  • Specifies for which systems the user has valid transponders. Note: currently, the only valid value is “all”

    Declaration

    Swift

    public var transponders: [String]
  • Defines special toll vehicle types. 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. The emission types defined are based on the emission standards.

    Declaration

    Swift

    public var emissionType: TollOptions.EmissionType?
  • Defines the CO2 class as defined by the toll operator. CO2 class is used with emission type. Allowed values for CO2 class are 1, 2, 3, 4, or 5.

    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

    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