HazardElement
public struct HazardElement : HorizonElementHorizonElement  that contains data about a hazard.
To receive such elements in the  HorizonSnapshot, specify HorizonElementType.hazardType
in the HorizonOptions that you register with the HorizonEngine:
let horizonOptions = HorizonOptions(
    id: UUID(),
    elementTypes: [.hazardType],
    ...
)
Important
This is a Public Preview API. It may be changed or removed at any time.- 
                  
                  Initializes instance of HazardElement.DeclarationSwift public init( id: Int, pathID: Int, startOffset: Measurement<UnitLength>, endOffset: Measurement<UnitLength>, hazard: Hazard )
- 
                  
                  Type of the element. Used to filter elements by type. DeclarationSwift public let elementType: HorizonElementType
- 
                  
                  Identifier of this element. DeclarationSwift public let id: Int
- 
                  
                  Identifier of the HorizonPathto which this element belongs.DeclarationSwift public let pathID: Int
- 
                  
                  Start offset on the HorizonPath.DeclarationSwift public let startOffset: Measurement<UnitLength>
- 
                  
                  End offset on the HorizonPath.DeclarationSwift public let endOffset: Measurement<UnitLength>
- 
                  
                  Hazard data object. DeclarationSwift public let hazard: Hazard
 
         TomTom SDK for iOS (0.53.1)
 
          TomTom SDK for iOS (0.53.1)
         HazardElement
          HazardElement