airport_lookup: Translate airport codes or names into other standard airport...

Description Usage Arguments Value Examples

View source: R/airport_lookups.R

Description

Return city name, airport name, IATA code, or IACO code given an input IATA code, ICAO code, or airport name.

Usage

1
airport_lookup(input, input_type = "IATA", output_type = "name")

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

output_type

One of "name", "city", "IATA", or "ICAO". Defaults to "name" if otherwise not specified

Value

The appropriate city, airport name, IATA code, or ICAO code for that airport

Examples

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")

dshkol/airportr documentation built on July 7, 2020, 10:59 a.m.