airport_lookup {airportr} | R Documentation |
Return city name, airport name, IATA code, or IACO code given an input IATA code, ICAO code, or airport name.
airport_lookup(input, input_type = "IATA", output_type = "name")
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 |
The appropriate city, airport name, IATA code, or ICAO code for that airport
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")