Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.
/ SwiftMETAR Public archive

A METAR parser written in Swift

License

Notifications You must be signed in to change notification settings

JonathanDowning/SwiftMETAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

METAR Parser for Swift

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

This Project Has Been Archived

This project is not under active development and has been archived.

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.

About

A METAR parser written in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages