R/airport_lookups.R
airport_location.Rd
Returns airport location in longitude and latitude coordinates given an input IATA code, ICAO code, or airport name.
airport_location(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 |
List of longitude and latitude coordinates
airport_location("YVR","IATA")#> # A tibble: 1 x 2 #> Latitude Longitude #> <dbl> <dbl> #> 1 49.2 -123.#' airport_location("Vancouver International Airport","name")