VehicleRestrictionsProtocol

@available(*, message: "TT_API_PUBLIC_PREVIEW('byTheEndOf=2020.12', 'This is under Public Preview and subject to change until the end date. More information is available at: https://developer.tomtom.com/public-preview'﹚")
@objc
public protocol VehicleRestrictionsProtocol

Public Preview

This is under Public Preview and subject to change by the end of 2020.12. More information is available at: https://developer.tomtom.com/public-preview

Specifies the restriction that this vehicle should be subjected to.

  • Specifies maximum speed of the vehicle in km/hour.

    Declaration

    Swift

    @objc
    optional var vehicleMaxSpeedInKph: Int { get set }
  • Specifies whether the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.

    Declaration

    Swift

    @objc
    optional var isVehicleCommercial: Bool { get set }
  • Specifies the vehicle load type for route calculation.

    Declaration

    Swift

    @objc
    var vehicleLoadType: VehicleLoadType { get set }
  • If specified, the vehicle is subject to ADR tunnel restrictions.

    Declaration

    Swift

    @objc
    var vehicleAdrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode { get set }