airport_location {airportr}R Documentation

Lookup airport location coordinates given a standard airport input.

Description

Returns airport location in longitude and latitude coordinates given an input IATA code, ICAO code, or airport name.

Usage

airport_location(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

List of longitude and latitude coordinates

Examples

airport_location("YVR","IATA")
#' airport_location("Vancouver International Airport","name")

[Package airportr version 0.1.3 Index]