airport_detail: Lookup full airport details based of a standard airport input

Description Usage Arguments Value Examples

View source: R/airport_lookups.R

Description

Return all airport details given an input IATA code, ICAO code, or airport name.

Usage

1
airport_detail(input, input_type)

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

Value

A 1x14 tibble with airport details

Examples

1
2
airport_detail("YVR")
airport_detail("London Heathrow Airport")

Example output

# A tibble: 1 x 17
  `OpenFlights ID` Name  City  IATA  ICAO  Country `Country Code`
             <dbl> <chr> <chr> <chr> <chr> <chr>   <chr>         
1              156 VancVancYVR   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 LondLondLHR   EGLL  United826           
# … 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>

airportr documentation built on Oct. 9, 2019, 9:05 a.m.