Description Usage Arguments Value Examples
View source: R/airport_lookups.R
Return all airport details given an input IATA code, ICAO code, or airport name.
1 | airport_detail(input, input_type)
|
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 |
A 1x14 tibble with airport details
1 2 | airport_detail("YVR")
airport_detail("London Heathrow Airport")
|
# A tibble: 1 x 17
`OpenFlights ID` Name City IATA ICAO Country `Country Code`
<dbl> <chr> <chr> <chr> <chr> <chr> <chr>
1 156 Vanc… Vanc… YVR CYVR Canada 124
# … with 10 more variables: `Country Code (Alpha-2)` <chr>, `Country Code
# (Alpha-3)` <chr>, Latitude <dbl>, Longitude <dbl>, Altitude <dbl>,
# UTC <dbl>, DST <chr>, Timezone <chr>, Type <chr>, Source <chr>
# A tibble: 1 x 17
`OpenFlights ID` Name City IATA ICAO Country `Country Code`
<dbl> <chr> <chr> <chr> <chr> <chr> <chr>
1 507 Lond… Lond… LHR EGLL United… 826
# … with 10 more variables: `Country Code (Alpha-2)` <chr>, `Country Code
# (Alpha-3)` <chr>, Latitude <dbl>, Longitude <dbl>, Altitude <dbl>,
# UTC <dbl>, DST <chr>, Timezone <chr>, Type <chr>, Source <chr>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.