TurbulenceItem
public struct TurbulenceItem : Codable, Equatable
The turbulence data object.
-
A turbulence severity level.
Declaration
Swift
public let sev: TurbulenceSeverity
-
The H3 hexagon vertices coordinates of the turbulence tile area.
Declaration
Swift
public let vertices: [CLLocationCoordinate2D]
-
A tile representation for which the turbulence is tracked.
Declaration
Swift
public let tile: Tile
-
An altitude based on SkyPath tile altitude. where 1 is 1000 feet. If
tile.alt
is 38, thenalt
is38,000..<39,000
feet.Measured in feet.
Declaration
Swift
public let alt: Double
-
A UNIX timestamp of when the report has been generated.
Declaration
Swift
public let ts: Int
-
It’s a center coordinate of a
vertices
.Declaration
Swift
public let coordinate: CLLocationCoordinate2D
-
The H3 index using resolution 5.
Declaration
Swift
public var h3Hex: String
-
A turbulence severity trend if available and based on the previous data cached.
Declaration
Swift
public var trend: TurbulenceTrend?
-
Distance from current location to the nearest coordinate of
vertices
.The system-provided location is used. When location is not available it will return
nil
.Declaration
Swift
public var distanceTo: CLLocationDistance? { get }
-
Time to pass
distanceTo
based on the current speed.The system-provided speed is used. If system speed is invalid or not available the calculated speed based on coordinates change over time will be used.
Declaration
Swift
public var timeTo: TimeInterval? { get }
-
Time to pass the diameter of the
vertices
based on the current speed.The system-provided speed is used. If system speed is invalid or not available the calculated speed based on coordinates change over time will be used.
Declaration
Swift
public var timeToPass: TimeInterval? { get }
-
Calculated EDR value if available.
Declaration
Swift
public var edr: Double?