tracktable.info.airports module
Module contents
- tracktable.info.airports.airport_information(airport_code)[source]
Look up information about an airport
- tracktable.info.airports.airport_size_rank(airport_code)[source]
Return an airport’s global rank by size
- Parameters:
airport_code (str) – IATA or ICAO airport identifier
- Returns:
Integer ranking. 1 is the largest, higher values are smaller.
- tracktable.info.airports.airport_tier(airport_code)[source]
Return an estimated tier for an airport
We divide airports roughly into 4 tiers (chosen purely by hand) for a classification task. This function lets us retrieve the tier assigned to any given airport.
- tracktable.info.airports.all_airports()[source]
Return all the airport records we have
- Returns:
Unsorted list of airport objects.
- tracktable.info.airports.all_airports_within_bounding_box(bounding_box)[source]
Return all the airport records we have from a given bounding box.
- Parameters:
bounding_box (str) – Bounding box to return all airports from.
- Returns:
Dictionary of airports from the given bounding box.
- tracktable.info.airports.build_airport_dict()[source]
Assemble the airport dictionary on first access
This function is called whenever the user tries to look up an airport. It checks to make sure the table has been populated and, if not, loads it from disk.
- Returns:
None
- Side Effects:
Airport data will be loaded if not already in memory