TurbulenceCluster

public class TurbulenceCluster : Equatable, Hashable

Turbulence cluster. Generated cluster exists until no turbulence can be added to this cluster. The cluster is dynamically updated.

  • id

    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 bbox of turbulence items. 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 diameterDistance 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 }
  • Text description of the cluster.

    Declaration

    Swift

    public var description: String { get }
  • The nearest turbulence item from turbulence is based on the tile center. The system-provided location is used. When location is not available it will return nil.

    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 center of the cluster.

    Declaration

    Swift

    public var nearestMaxSevCenter: CLLocationCoordinate2D { get }