R/fr24.R
export_positions_at_airport_fr24.Rd
Extract FlightRadar24 positions within a distance from the aerodrome for qualified airport movements (arrivals or departures or all)
export_positions_at_airport_fr24(
wef,
til,
apt,
lon_apt,
lat_apt,
flow = "ALL",
radius = 40
)
(UTC) timestamp of With Effect From (included)
(UTC) timestamp of TILl instant (excluded)
IATA airport code, i.e. PSA for Pisa "Galileo Galilei"
airport longitude (decimal degrees, WGS84)
airport latitude (decimal degrees, WGS84)
the flow of flights: "ARR" for arrivals, "DEP" for departures, "ALL" for both [default "ALL"]
radius around airport to keep position reports (nautical miles [NM])
dataframe of ADS-B position reports
You need to store your credentials to access the FR24 tables in the following environment variables:
PRU_FR24_USR
for the user id
PRU_FR24_PWD
for the password
PRU_FR24_DBNAME
for the database name
Other read/export:
export_allft_so6()
,
export_apds()
,
export_event_so6()
,
export_event_trajectory()
,
export_flight_info()
,
export_flights_at_airport_fr24()
,
export_flights_fr24()
,
export_hourly_adsb()
,
export_model_trajectory()
,
export_movements()
,
export_positions_fr24()
,
generate_so6()
,
parse_airspace_prisme()
,
read_cpr()
,
read_flights_fr24()
,
read_positions_fr24()
,
read_so6()
if (FALSE) {
# half a day (UTC times, not local ones!) worth of all movements at Stavanger Airport,
# Sola, Sweden on 1st Sep 2017
export_positions_at_airport_fr24("2017-09-01T00:00:00",
"2017-09-01T12:00:00",
"SVG",
5.638, 58.877)
# all arrivals within 50 NM on 25th Sep 2018 at Pisa Airport, Pisa, Italy
export_positions_at_airport_fr24("2018-09-25",
"2018-09-26",
"PSA", 10.39270, 43.68390,
flow = "ARR",
radius = 50)
}