Learn R Programming

pmetar (version 0.5.1)

metar_location: Get approximated airport location.

Description

Find approximated latitude, longitude and elevation of an airport according to IATA, International Air Transport Association, or ICAO, International Civil Aviation Organization, airport code. Two source of information about airports are used. First the function search in the list of airports available at https://ourairports.com/data/ created by David Megginson. If an airport cannot be found there, the second list of airports is searched, from https://weather.ral.ucar.edu/surface/stations.txt prepared by Greg Thompson from
National Weather Service NCAR/RAP.

Usage

metar_location(x = "EPWA")

Value

a tibble with columns with an airport information as below:

  • ICAO code

  • IATA Code

  • Airport name

  • Longitude, in degress

  • Latitude, in degress

  • Elevation, above see elevel in meters

  • Source of information

Arguments

x

character vector; an airport ICAO four letters code or an IATA three letters code.

Examples

Run this code
metar_location("EPWA")
metar_location("CYUL")
metar_location("LEMD")
metar_location("NCRK")
metar_location("WAW")
metar_location("FRA")

Run the code above in your browser using DataLab