openSkiesRoute {openSkies} | R Documentation |
An R6Class
object representing a flight route
Description
R6Class
object representing a flight route, usually operated by
a commercial airline. Contains information about the callsign under which the
route is operated, the operator itself and the airports of origin and
destination. New instances can be manually created by providing values for at
least the fields call_sign
, origin_airport
and destination_airport
.
Alternatively, getRouteMetadata
will return an openSkiesRoute
object corresponding to the route with the provided callsign.
Usage
openSkiesRoute
Fields
call_sign
String with callsign of the route
origin_airport
String with the ICAO 4-letter code of the airport of origin
destination_airport
String with the ICAO 4-letter code of the destination airport
operator_IATA
String with the IATA code for the operator of the route
flight_number
String with the flight number for the route. The callsign is usually composed of an airline identifier and the flight number
Examples
# Create an openSkiesRoute object corresponding to the American Airlines route
# with callsign AAL683
if(interactive()){
test_route <- getRouteMetadata("AAL683")
test_route
}