getRouteMetadata: Retrieve metadata for a specified route

Description Usage Arguments Value References Examples

View source: R/openSkies_getMetadataFunctions.R

Description

Retrieves the available metadata for a specified flight route. These include the airports of origin and destination, the operator IATA code and the flight number.

Usage

1
getRouteMetadata(route, includeAirportsMetadata=FALSE)

Arguments

route

string with the call sign of a route (for example, "AAL683" for American Airlines flight number 683.

includeAirportsMetadata

logical indicating if the data about the origin and destination airports of the route should also be retrieved. If not, only the ICAO24 code of the airports will be included.

Value

An object of class openSkiesRoute. See the openSkiesRoute documentation for details on the fields for the class.

References

https://en.wikipedia.org/wiki/Flight_number

Examples

1
2
3
4
5
# Obtain metadata for the route with call sign AAL683

if(interactive()){
getRouteMetadata("AAL683")
}

openSkies documentation built on April 17, 2021, 9:06 a.m.