Comms

public struct Comms

Core structure providing the communications processes.

This structure is the core structure that was providing communications for the reports. This structure is in the process of being deprecated and is being replaced by a generic Reports object.

  • Generic initializer.

    Declaration

    Swift

    public init()
  • Retrieves the METAR reports.

    Retrieves METAR reports according to a center point and a radius in miles.

    Declaration

    Swift

    @available(*, deprecated, message: "Use Reports.getReport(MetarParams﹚ to generate the report.")
    public func getMETAR(_ centerPoint: CLLocationCoordinate2D,
                         _ radiusInMiles: Int = 10,
                         completion: @escaping (_ metar: [METAR], Error?)->())

    Parameters

    centerPoint

    The latitude and longitude for the search center point.

    radiusInMiles

    The radius from the centerpoint for the search

  • Retrieves the TAF reports.

    Retrieves TAF reports according to a center point and a radius in miles.

    Declaration

    Swift

    public func getTAF(_ centerPoint: CLLocationCoordinate2D,
                       _ radiusInMiles: Int = 10,
                       completion: @escaping (_ metar: [TAF], Error?)->())

    Parameters

    centerPoint

    The latitude and longitude for the search center point.

    radiusInMiles

    The radius from the centerpoint for the search