SpeedLimits
public struct SpeedLimits : HorizonElement
Element with Speed limit information.
To retrieve the speed limits for a specific vehicle e.g., for trucks, you need to set the proper TomTomSDKCommon.VehicleType
using TomTomSDKVehicle.DefaultVehicleProvider.setVehicle. An instance of the
TomTomSDKVehicle.DefaultVehicleProvider should be the same as provided to the
TomTomSDKNavigation.NavigationConfiguration. After that, the horizon provides speed limits for the specific vehicle type.
Attention
speed limits are affected mostly by vehicle type TomTomSDKCommon.VehicleType,
but some other vehicle characteristics might be considered such as weight, type of load and many others
Important
This is a Public Preview API. It may be changed or removed at any time.
-
Declaration
Swift
public let elementType: HorizonElementType -
Declaration
Swift
public let id: Int -
Declaration
Swift
public let pathID: Int -
Declaration
Swift
public let startOffset: Measurement<UnitLength> -
Declaration
Swift
public let endOffset: Measurement<UnitLength> -
Non-weather dependent speed limit.
Declaration
Swift
public let speed: Measurement<UnitSpeed>? -
Reason for speed limit.
Declaration
Swift
public let type: SpeedLimitsType -
Fog-dependent speed limit.
Declaration
Swift
public let speedFog: Measurement<UnitSpeed>? -
Snow-dependent speed limit.
Declaration
Swift
public let speedSnow: Measurement<UnitSpeed>? -
Rain-dependent speed limit.
Declaration
Swift
public let speedRain: Measurement<UnitSpeed>?
SpeedLimits Structure Reference