Swiftpack.co -  JonathanDowning/SwiftMETAR as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
JonathanDowning/SwiftMETAR
A METAR parser written in Swift
.package(url: "https://github.com/JonathanDowning/SwiftMETAR.git", from: "2.1.1")

METAR Parser for Swift

SwiftMETAR provides a simple way to parse METARs into Swift types.

Usage Example

import METAR

let metar = METAR("EGLL 290420Z AUTO 05005KT 020V090 7000 R04/1300VP2000U OVC005 09/08 Q1024 TEMPO BKN004")
print(metar?.visibility?.measurement) // Prints: Optional(7000.0 m)
print(metar?.temperature?.measurement) // Prints: Optional(9.0 °C)
print(metar?.qnh?.measurement) // Prints: Optional(1024.0 hPa)
print(metar?.wind?.speed.measurement) // Prints: Optional(5.0 kn)
print(metar?.runwayVisualRanges) // Prints: Optional([Runway 04: 1300.0 m – >2000.0 m Increasing])

Contribution

If you'd like to contribute, please feel free to create a PR.

License

SwiftMETAR is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 15
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

5 weeks ago
  • Improve parsing reliability

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API