TrafficSignElement

public struct TrafficSignElement : HorizonElement

HorizonElement that contains data about a traffic sign.

To receive such elements in the HorizonSnapshot, specify HorizonElementType.trafficSignType in the HorizonOptions that you register with the HorizonEngine:

let horizonOptions = HorizonOptions(
    id: UUID(),
    elementTypes: [.trafficSignType],
    ...
)

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Category of a traffic sign.

    See more

    Declaration

    Swift

    public enum Category
  • Location on the road of a traffic sign.

    See more

    Declaration

    Swift

    public enum Location
  • Type of the element. Used to filter elements by type.

    Declaration

    Swift

    public let elementType: HorizonElementType
  • id

    Identifier of this element.

    Declaration

    Swift

    public let id: Int
  • Identifier of the HorizonPath to 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>
  • Traffic sign Category.

    Declaration

    Swift

    public let category: TrafficSignElement.Category
  • Traffic sign Location.

    Declaration

    Swift

    public let location: TrafficSignElement.Location?