SpeedLimitElement
public struct SpeedLimitElement : HorizonElement, Equatable
                HorizonElement that contains data about a speed limit.
To receive such elements in the  HorizonSnapshot, specify HorizonElementType.speedLimitType
in the HorizonOptions that you register with the HorizonEngine:
let horizonOptions = HorizonOptions(
    id: UUID(),
    elementTypes: [.speedLimitType],
    ...
)
Attention
speed limits are affected mostly byTomTomSDKCommon.VehicleType,
but apart from the vehicle type, some other vehicle characteristics might be considered, such as weight, type of load, and many others.
- 
                  
                  
Creates an instance of
SpeedLimitElement.Declaration
Swift
public init( id: Int, pathID: Int, startOffset: Measurement<UnitLength>, endOffset: Measurement<UnitLength>, speedLimit: TomTomSDKCommon.SpeedLimit ) 
- 
                  
                  
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> - 
                  
                  
SpeedLimitdata, consisting of a speed limit type and a speed limit value.Declaration
Swift
public let speedLimit: TomTomSDKCommon.SpeedLimit 
        
 
          TomTom SDK for iOS (0.40.0)
        
          SpeedLimitElement