get_airport_data: get_airport_data

Description Usage Arguments Value Examples

View source: R/get_airport_data.R

Description

Retrieve flights for a certain airport which arrived within a given time interval. You should specified if you want departure or arrival flights in the function.

Usage

1
2
3
4
5
6
7
8
get_airport_data(
  username = NULL,
  password = NULL,
  airport = NULL,
  begin = NULL,
  end = NULL,
  option = c("departures", "arrivals")
)

Arguments

username

Your 'OpenSky Network' username.

password

Your 'OpenSky Network' password.

airport

ICAO identifier for the airport.

begin

Start of time interval to retrieve flights for as Unix time (seconds since epoch).

end

End of time interval to retrieve flights for as Unix time (seconds since epoch).

option

String indicating whether you want to request the departure or arrival flights. "arrivals" or "departures".

Value

A dataframe with the list of flights arriving to the airport defined in airport in the period specified between begin and end.

Examples

1
2
3
4
5
6
## Not run: get_airport_data("your_username", "your_password", airport = "EDDF",
 begin = 1517227200, end = 1517230800, option = "arrivals")
## End(Not run)
  ## Not run: get_airport_data("your_username", "your_password", airport = "EDDF",
 begin = 1517227200, end = 1517230800, option = "departures")
## End(Not run)

lgascosa/Ropensky documentation built on May 10, 2020, 5:57 a.m.