VehicleRestrictionCondition
public struct VehicleRestrictionCondition : Hashable
Combined set of conditions that must all be satisfied for a regulation to apply.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Road profile conditions that activate this restriction.
Declaration
Swift
public var requiredRoadProfile: RoadProfileCondition? -
Weather condition that must be present for this restriction to apply.
Declaration
Swift
public var requiredWeatherCondition: WeatherType? -
Time rules during which this restriction is active.
Declaration
Swift
public var appliesDuring: [TimeRule] -
Vehicle profile that is subject to this restriction.
Declaration
Swift
public var requiredVehicleProfile: [VehicleProfileRestriction] -
Creates a new instance with default values.
Declaration
Swift
public init(requiredRoadProfile: RoadProfileCondition? = nil, requiredWeatherCondition: WeatherType? = nil, appliesDuring: [TimeRule] = [], requiredVehicleProfile: [VehicleProfileRestriction] = [])