TurbulenceCluster
public class TurbulenceCluster : Equatable, Hashable
Generated cluster exists until no turbulence can be added to this cluster. The cluster is dynamically updated.
-
Cluster identifier.
Declaration
Swift
public var id: String -
Array of turbulence in this cluster.
Declaration
Swift
public internal(set) var turbulence: [TurbulenceItem] { get } -
The calculated center of the cluster is based on all turbulence coordinates in it.
Declaration
Swift
public var center: CLLocationCoordinate2D { get } -
The highest turbulence severity that this cluster has.
Declaration
Swift
public var severity: TurbulenceSeverity { get } -
The diameter of the cluster is based on turbulence coordinates in it.
Declaration
Swift
public var diameterDistance: Double { get } -
Distance from current location to the nearest coordinate of
bboxofturbulenceitems. The system-provided location is used. When location is not available it will returnnil.Declaration
Swift
public var distanceTo: CLLocationDistance? { get } -
Time to pass
distanceTobased 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
diameterDistancebased 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 } -
Text description of the cluster.
Declaration
Swift
public var description: String { get } -
The nearest turbulence item from
turbulenceis based on the tile center. The system-provided location is used. When location is not available it will returnnil.Declaration
Swift
public var nearestMaxSevTurbulence: TurbulenceItem? { get } -
The center of the nearest turbulence tile with the highest severity. The system-provided location is used. When location is not available it will return to the
centerof the cluster.Declaration
Swift
public var nearestMaxSevCenter: CLLocationCoordinate2D { get }
TurbulenceCluster Class Reference