RoadWorksDetailedInformation
public class RoadWorksDetailedInformation : DetailedHazardInformation
Detailed information for road works.
Important
This is a Public Preview API. It may be changed or removed at any time.Implements method to check two RoadWorksDetailedInformation
objects for equality.
Declaration
Swift
public static func == (lhs: RoadWorksDetailedInformation, rhs: RoadWorksDetailedInformation) -> Bool
Parameters
lhs
|
A value to compare. |
rhs
|
Another value to compare. |
Return Value
True if both RoadWorksDetailedInformation
are equal.
The current average speed for the roadworks stretch.
Declaration
Swift
public let currentSpeed: Measurement<UnitSpeed>?
Initializes aRoadWorksDetailedInformation
.
Declaration
Swift
public init(
lengthAffected: Measurement<UnitLength>?,
currentSpeed: Measurement<UnitSpeed>?,
laneChangesExpected: Bool?
)
Parameters
lengthAffected
|
The length of the roadworks. |
currentSpeed
|
The current average speed for the roadworks stretch. |
laneChangesExpected
|
Specifies if lane changes expected. |
Lane changes can be a reduced number of lanes, narrow lanes or a different lane structure throughout the roadworks stretch. True, if lane changes are expected. False, if no lane changes are expected. Nil, if it is not known if the roadworks hazard also includes lane changes.
Declaration
Swift
public let laneChangesExpected: Bool?
The length of the roadworks.
Declaration
Swift
public let lengthAffected: Measurement<UnitLength>?