ViolatedRestriction
public struct ViolatedRestriction : Hashable
ViolatedRestriction contains all the violated restriction details for the planned trip.
-
Cause of the notice. Human readable description of the notice, for example “Route violates vehicle restriction”. It will be EN-US text only.
Declaration
Swift
public var cause: String -
Indicates that restriction depends on time.
Declaration
Swift
public var timeDependent: Bool -
The detailed information of restriction depending on the specific violation. For time dependent restriction or transport mode restriction, this property will be null. For vehicle restriction, the corresponding member will be set, for example, if the vehicle violates the maximum allowed gross weight for a specific route, the max_gross_weight_in_kilograms will be set with the maximum allowed gross weight for this route.
Declaration
Swift
public var details: ViolatedRestriction.Details? -
Creates a new instance.
Declaration
Swift
public init(cause: String, timeDependent: Bool, details: ViolatedRestriction.Details? = nil) -
Optional restriction details, contains additional information depending on the specific violation, zero or more member might be set. For example, if the vehicle violates the maximum allowed height during the trip, then the member
See moremax_height_in_centimeterswill be set with the maximum allowed height value.Declaration
Swift
public struct Details : Hashable