TrafficSignElement
public struct TrafficSignElement : HorizonElement
Describes a traffic sign on the horizon element.
This structure holds a horizon element with information traffic sign. It contains information regarding traffic sign’s type category and location.
To obtain TrafficSignElement horizon elements, the integrator must create an instance of HorizonEngine,
register HorizonOptions including elementTypes containing HorizonElementType .trafficSignType with a call to HorizonEngine .registerHorizonOptions,
and request a HorizonResult using the previously registered HorizonOptions with a call to
HorizonEngine .generateHorizon.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Category of a traffic sign.
See moreDeclaration
Swift
public enum Category -
Location on the road of a traffic sign.
See moreDeclaration
Swift
public enum Location -
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 path where this element belongs.
Declaration
Swift
public let pathID: Int -
Start offset on the path.
Declaration
Swift
public let startOffset: Measurement<UnitLength> -
End offset on the path.
Declaration
Swift
public let endOffset: Measurement<UnitLength> -
Category of the traffic sign.
Declaration
Swift
public let category: TrafficSignElement.Category -
Location of the traffic sign.
Declaration
Swift
public let location: TrafficSignElement.Location?
TrafficSignElement Structure Reference