openSkiesAirport: An 'R6Class' object representing an airport

Description Usage Fields Examples

Description

R6Class object representing an airport. Contains information about the name of the airport, its IATA and ICAO codes, and its location. New instances can be manually created by providing values for at least the fields name, city, country, longitude and latitude. Alternatively, getAirportMetadata will return an openSkiesAirport object corresponding to the airport with the provided ICAO code.

Usage

1

Fields

name

String with the name of the airport

ICAO

String with the ICAO code of the airport

IATA

String with the IATA code of the airport

longitude

Longitude of the position of the airport

latitude

Latitude of the position of the airport

altitude

Altitude of the position of the airport

city

String with the name of the city where the airport is located

municipality

String with the ISO 3166-2 code where the airport is located

region

String with the name of the region where the airport is located

country

String with the ISO 3166-1 alpha-2 code of the country where the airport is located

continent

String with the ISO 3166-1 alpha-2 code of the continent where the airport is located

type

String with information about the type of airport

website

String with the URL for the website of the airport

wikipedia_entry

String with the URL for the Wikipedia entry of the airport

reliable_position

Logical value indicating if the position of the airport is reliable

GPS_code

String with the GPS code of the airport

Examples

1
2
3
4
5
6
# Create an openSkiesAirport object corresponding to Sevilla Airport

if(interactive()){
test_airport <- getAirportMetadata("LEZL")
test_airport
}

openSkies documentation built on Dec. 19, 2021, 5:10 p.m.