SectionNotice
public struct SectionNotice : Hashable
Explains an issue encountered in a Section.
-
The notice code.
Declaration
Swift
public var code: SectionNoticeCode -
The notice severity.
Declaration
Swift
public var severity: NoticeSeverity -
The following property
violated_restrictionscontains the notice detail information. Only three types of restrictions can have notice details: time dependent restriction, vehicle restriction and transport mode restriction. There is no one-to-one match of theSectionNotice.codeand these three restriction types. For example, ifSectionNotice.codeisSectionNoticeCode.violatedVehicleRestriction, then it can be either vehicle restriction or transport mode restriction. IfSectionNotice.codeisSectionNoticeCode.seasonalClosure, then it is time dependent restriction. If the section notice is none of the above-mentioned three types, then this will be an empty list.Declaration
Swift
public var violatedRestrictions: [ViolatedRestriction] -
Creates a new instance.
Declaration
Swift
public init(code: SectionNoticeCode, severity: NoticeSeverity, violatedRestrictions: [ViolatedRestriction] = [])