Description Usage Arguments Value Examples
View source: R/airport_lookups.R
Return city name, airport name, IATA code, or IACO code given an input IATA code, ICAO code, or airport name.
1 | 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
1 2 3 4 5 6 7 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.