Description Usage Arguments Details Value See Also Examples
A function to get all arrival or departure flights in a specific airport in a given time interval - call to Opensky Network API
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)
|
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 |
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.
The response is a JSON array of flights where each flight is an object with properties
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.