Learn R Programming

openSkies (version 1.0.0)

getAirportMetadata: Retrieve metadata for a specified airport

Description

Retrieves the available metadata for a specified airport. These include its IATA code, common name and location, among others. A single airport must be specified using its ICAO code.

Usage

getAirportMetadata(airport)

Arguments

airport

string with the ICAO 4-letter code of an airport (for example, \"LEZL\" for Sevilla Airport.

Value

An object of class openSkiesAirport. See the openSkiesAirport documentation for details on the fields for the class.

References

https://en.wikipedia.org/wiki/List_of_airports_by_IATA_and_ICAO_code

Examples

Run this code
# NOT RUN {
# Obtain metadata for the airport with ICAO code LEZL

if(interactive()){
getAirportMetadata("LEZL")
}
# }

Run the code above in your browser using DataLab