airport_lookup {airportr} | R Documentation |
Translate airport codes or names into other standard airport formats
Description
Return city name, airport name, IATA code, or IACO code given an input IATA code, ICAO code, or airport name.
Usage
airport_lookup(input, input_type = "IATA", output_type = "name")
Arguments
input |
An airport name, IATA code, or ICAO code. Input type will be guessed unless #' explicitly defined |
input_type |
One of "name", "IATA", or "ICAO". Function will attempt to guess type if not supplied |
output_type |
One of "name", "city", "IATA", or "ICAO". Defaults to "name" if otherwise not specified |
Value
The appropriate city, airport name, IATA code, or ICAO code for that airport
Examples
airport_lookup("CYVR")
airport_lookup("YVR", output_type = "city")
airport_lookup("Vancouver International Airport", input_type="name",output_type = "IATA")
airport_lookup("YVR",input_type = "IATA", output_type = "city")
# Produces a list of similar named airports
airport_lookup("Vancoover","name","city")
[Package airportr version 0.1.3 Index]