DataTypeOptions
public struct DataTypeOptions : OptionSet, Hashable
SkyPath data types available to be fetched from the server.
Only specified type in DataQuery.types
will be fetched and stored locally.
-
Turbulence data that can be queried by
SkyPath.turbulence(with:)
usingTurbulenceQuery
to receiveTurbulenceItem
.SkyPath uses H3 hexagonal hierarchical geospatial indexing system. H3 resolution 5 to represent turbulence area by hexagons of different severity levels. SDK handles all work with H3 indexes out of the box so you don’t need to do anything for it on your side.
Declaration
Swift
public static let turbulence: DataTypeOptions
-
Turbulence polygons that can be queried by
SkyPath.turbulencePolygons(with:)
usingTurbulencePolygonsQuery
.A planet-wide aggregated turbulence area polygons. Used to show turbulence areas worldwide without fetching too much data.
Declaration
Swift
public static let turbulencePolygons: DataTypeOptions
-
Live flights with the SkyPath app or SDK running.
Live flights can be queried by
SkyPath.liveFlights(with:)
usingLiveFlightsQuery
to receiveLiveFlight
.Declaration
Swift
public static let liveFlights: DataTypeOptions
-
Nowcast.
Declaration
Swift
public static let nowcast: DataTypeOptions
-
Convenient method to
insert()
orremove
option.Declaration
Swift
public mutating func set(type: DataTypeOptions, enabled: Bool)
-
Convert to an array.
Declaration
Swift
public var asArray: [DataTypeOptions] { get }