get_flights_data: get_flights_data

Description Usage Arguments Value Examples

View source: R/get_flights_data.R

Description

Retrieve flights for a certain airport which arrived within a given time interval. If no flights are found for the given period, HTTP stats 404 - Not found is returned with an empty response body.

Usage

1
2
3
4
5
6
7
get_flights_data(
  username = NULL,
  password = NULL,
  icao24 = NULL,
  begin = NULL,
  end = NULL
)

Arguments

username

Your 'OpenSky Network' username.

password

Your 'OpenSky Network' password.

icao24

Unique ICAO 24-bit address of the transponder in hex string representation. All letters need to be lower case.

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).

Value

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

Examples

1
2
3
## Not run: get_flights_data(username = "your_username", password = "your_password",
 icao24 = 3c675a , begin = 1517227200, end = 1517230800)
## End(Not run)

luisgasco/Ropensky documentation built on May 10, 2020, 7:33 a.m.