GeneralRoadPropertiesElement
public struct GeneralRoadPropertiesElement : HorizonElement
HorizonElement that contains data about general road properties.
To receive such elements in the HorizonSnapshot, specify HorizonElementType.generalRoadPropertiesType
in the HorizonOptions that you register with the HorizonEngine:
let horizonOptions = HorizonOptions(
id: UUID(),
elementTypes: [.cityType],
...
)
-
Initializes
GeneralRoadPropertiesElement.To obtain
GeneralRoadPropertiesElementhorizon element, user must create instance ofHorizonEngine, registerHorizonOptionswith callregisterHorizonOptionsincludingelementTypescontaining valueHorizonElementType.generalRoadPropertiesType.Declaration
Swift
public init( id: Int, pathID: Int, startOffset: Measurement<UnitLength>, endOffset: Measurement<UnitLength>, roadProperties: RoadProperties )Parameters
idIdentifier of this element.
pathIDIdentifier of the path this element belongs to.
startOffsetStart offset on the path.
endOffsetEnd offset on the path.
roadPropertiesInformation about the properties of the road at the current location such as number of lanes, driving side, road condition etc.
-
Type of the element. Used to filter elements by type.
Declaration
Swift
public let elementType: HorizonElementType -
Identifier of this element.
Declaration
Swift
public let id: Int -
Identifier of the
HorizonPathto which this element belongs.Declaration
Swift
public let pathID: Int -
Start offset on the
HorizonPath.Declaration
Swift
public let startOffset: Measurement<UnitLength> -
End offset on the
HorizonPath.Declaration
Swift
public let endOffset: Measurement<UnitLength> -
General
TomTomSDKCommon/Roadpropertiesof the road, such as number of lanes, road importance designator, physical properties, surface, driving side and others.Declaration
Swift
public let roadProperties: RoadProperties
TomTom SDK for iOS (0.53.1)
GeneralRoadPropertiesElement