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.-
Initializes a
RoadWorksDetailedInformation.Declaration
Swift
public init( lengthAffected: Measurement<UnitLength>?, currentSpeed: Measurement<UnitSpeed>?, laneChangesExpected: Bool? )Parameters
lengthAffectedThe length of the roadworks.
currentSpeedThe current average speed for the roadworks stretch.
laneChangesExpectedSpecifies if lane changes expected.
-
The length of the roadworks.
Declaration
Swift
public let lengthAffected: Measurement<UnitLength>? -
The current average speed for the roadworks stretch.
Declaration
Swift
public let currentSpeed: Measurement<UnitSpeed>? -
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? -
Implements method to check two
RoadWorksDetailedInformationobjects for equality.Declaration
Swift
public static func == (lhs: RoadWorksDetailedInformation, rhs: RoadWorksDetailedInformation) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
Return Value
True if both
RoadWorksDetailedInformationare equal.
TomTom SDK for iOS (0.51.1)
RoadWorksDetailedInformation