Airports
Make API calls to RapidAPI to find the airports of cities worldwide
find(latitudes, longitudes, api_key)
Find the airports in the vicinity of the given geo coordinates
Parameters:
-
latitudes(list) –List of latitudes around which to locate airports. Must be the same length as longitudes
-
longitudes(list) –List of longitudes around which to locate airports. Must be the same length as latitudes
-
api_key(str) –RapidAPI key to access the Aerodatabox API
Returns:
-
airports_df(DataFrame) –DataFrame containing the airport information with columns 'id', 'icao', and 'airport_name'. The column 'id' is the index of the location in the input list
Raises:
-
ValueError–If the length of latitudes and longitudes do not match
Warns:
-
UserWarning–If the API call fails for a location