Flights
Make API calls to RapidAPI to fetch incoming flights of cities worldwide for the next full day
fetch(icaos, api_key, timezone='Europe/Berlin')
Fetch the incoming flights for the airports in the list of ICAOs
Parameters:
-
icaos
(list
) –List of ICAO codes for the airports to fetch the incoming flights
-
api_key
(str
) –RapidAPI key to access the Aerodatabox API
-
timezone
(str
, default:'Europe/Berlin'
) –IANA timezone string to determine the date of the following day from now. This should be the local timezone of the base of operations from where the data is maintained. Default is 'Europe/Berlin'
Returns:
-
flight_data
(DataFrame
) –DataFrame containing the incoming flights for the next full day The columns are 'flight_num', 'departure_icao', 'arrival_icao', 'arrival_time', and 'flight_retrieved_at'
Warns:
-
UserWarning
–If the API call fails for an ICAO code