Closed mborsetti closed 4 years ago
This PR has been implemented in fork of this project housed at https://github.com/mborsetti/airportsdata, which is also available for those using Python over pip:
pip install airportsdata
To load the data into a dict:
import airportsdata
airports = airportsdata.load() # key is ICAO code
or
import airportsdata
airports = airportsdata.load('IATA') # key is IATA code
Programmatically tested all ICAO codes starting with "C" (Canada) against an IATA database of 9088 Location Codes obtained from https://www.iata.org/en/publications/directories/code-search and found 16 instances where the cities matched but the database was missing the IATA codes; aadded the IATA code to those instances.
As a result of doing so programmatically, json file has lost trailing zeros after the decimal point, increasing the number of diffs beyond 16 but not affecting precision of data.