TrafficSection
public struct TrafficSection : Section
The TrafficSection struct contains information about a part of the route related to traffic incidents.
-
Initializer
Declaration
Swift
public init( sectionLocation: SectionLocation, routeOffset: Measurement<UnitLength>, length: Measurement<UnitLength>, delay: Measurement<UnitDuration>, simpleCategory: String? = nil, magnitudeOfDelay: MagnitudeOfDelay? = nil, tec: Tec? = nil, effectiveSpeed: Measurement<UnitSpeed>? = nil )Parameters
sectionLocationThe location of the section.
routeOffsetThe offset on the route where the section starts.
lengthThe length of the section.
delayThe delay caused by the incident.
simpleCategoryThe category of the traffic incident.
magnitudeOfDelayThe magnitude of delay caused by the traffic incident.
tecThe details of the traffic incident.
effectiveSpeedThe effective speed of the incident, averaged over its entire length.
-
The location of the section.
Declaration
Swift
public var sectionLocation: SectionLocation -
The offset on the route where the section starts.
Declaration
Swift
public var routeOffset: Measurement<UnitLength> -
The length of the section.
Declaration
Swift
public var length: Measurement<UnitLength> -
The category of the traffic incident
Declaration
Swift
public let simpleCategory: String? -
The magnitude of delay caused by the incident.
Declaration
Swift
public let magnitudeOfDelay: MagnitudeOfDelay? -
The details of the traffic incident.
Declaration
Swift
public let tec: Tec? -
The effective speed of the incident, averaged over its entire length.
Declaration
Swift
public let effectiveSpeed: Measurement<UnitSpeed>? -
The delay caused by the incident.
Declaration
Swift
public let delay: Measurement<UnitDuration>
TrafficSection Structure Reference