getOSNflightsByAirport: getOSNflightsByAirport

Description Usage Arguments Details Value See Also Examples

Description

A function to get all arrival or departure flights in a specific airport in a given time interval - call to Opensky Network API

Usage

1
2
3
getOSNflightsByAirport(icao.code = "JFK", type = "arrival",
  from.time = "2018-12-24 20:00:00", to.time = "2018-12-24 23:59:00",
  login = NULL, password = NULL)

Arguments

icao.code

ICAO code of the airport

type

either arrival or departure

from.time

Start of time interval to retrieve flights as "YYYY-MM-DD HH:MM:SS"

to.time

End of time interval to retrieve flights as "YYYY-MM-DD HH:MM:SS"

login

osn valid login

password

osn valid password

Details

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

Value

The response is a JSON array of flights where each flight is an object with properties

See Also

https://www.world-airport-codes.com/

https://opensky-network.org/apidoc/rest.html#arrivals-by-airport

https://opensky-network.org/apidoc/rest.html#departures-by-airport

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
getOSNflightsByAirport(icao.code = "LFPG",
                       type = "arrival",
                       from.time = "2018-01-29 00:00:00",
                       to.time = "2018-01-29 01:00:00",
                       login = "login",
                       password = "my pasword")

## End(Not run)

longwei66/flightR documentation built on May 18, 2019, 2:35 a.m.