Airport Codes
Files | Size | Format | Created | Updated | License | Source |
---|---|---|---|---|---|---|
1 | 8.28 MB | csv | 19 minutes ago | Open Data Commons Public Domain Dedication and License v1.0 | Our Airports |
The airport codes may refer to either IATA airport code, a three-letter code which is used in passenger reservation, ticketing and baggage-handling systems, or the ICAO airport code which is a four ...
Data Files
File | Description | Size | Last modified | Download |
---|---|---|---|---|
airport-codes | 8.28 MB | 19 minutes ago | airport-codes |
Data Previews
airport-codes
Schema
name | type | format |
---|---|---|
ident | string | default |
type | string | default |
name | string | default |
elevation_ft | integer | default |
continent | string | default |
iso_country | string | default |
iso_region | string | default |
municipality | string | default |
gps_code | string | default |
iata_code | string | default |
local_code | string | default |
coordinates | string | default |
Description
The airport codes may refer to either IATA airport code, a three-letter code which is used in passenger reservation, ticketing and baggage-handling systems, or the ICAO airport code which is a four letter code used by ATC systems and for airports that do not have an IATA airport code (from wikipedia).
Airport codes from around the world. Downloaded from public domain source http://ourairports.com/data/ who compiled this data from multiple different sources. This data is updated nightly.
Data
"data/airport-codes.csv" contains the list of all airport codes, the attributes are identified in datapackage description. Some of the columns contain attributes identifying airport locations, other codes (IATA, local if exist) that are relevant to identification of an airport.
Original source url is http://ourairports.com/data/airports.csv (stored in archive/data.csv)
Note: Currently the scripts is run automatically using Github Actions
Preparation
You will need Python 3.6 or greater and dataflows library to run the script
To update the data run the process script locally:
# To run locally you should do this
# Install using requirements
pip install -r scripts/requirements.txt
python3 scripts/process.py
python3 scripts/airport-codes-flow.py
# Run the script
make run
make clean
Several steps will be done to get the final data.
- merge columns "latitude_deg" and "longitude_deg" into "coordinates"
- remove columns: "id", "scheduled_service", "home_link", "wikipedia_link", "keywords"
Automation
Daily updated 'Airport codes' datapackage could be found on the datahub.io:
https://datahub.io/core/airport-codes
License
The source specifies that the data can be used as is without any warranty. Given size and factual nature of the data and its source from a US company would imagine this was public domain and as such have licensed the Data Package under the Public Domain Dedication and License (PDDL).