Data contains the list of all airport codes,
the attributes are listed in the table schema. Some of the columns
contain attributes identifying airport locations,
other codes (IATA, local if exist) that are relevant to
identification of an airport.
List of airports and airfields worldwide with their IATA and ICAO codes, location identifiers, facility type, and geographic coordinates. Derived from the OurAirports public domain dataset by merging latitude and longitude into a single coordinates field.
Field
Type
Format
Description
ident
string
default
OurAirports unique identifier for the airport (e.g. `00A`, `KLAX`, `ZYTX`).
ISO 3166-1 alpha-2 two-letter country code (e.g. `US`, `CN`, `GB`).
iso_region
string
default
ISO 3166-2 region code combining country and subdivision (e.g. `US-CA`, `CN-21`).
municipality
string
default
Name of the city or municipality where the airport is located. May be empty.
icao_code
string
default
ICAO (International Civil Aviation Organization) 4-letter airport code, used by air traffic control. May be empty for facilities without an ICAO designation.
iata_code
string
default
IATA (International Air Transport Association) 3-letter code, used in passenger ticketing and baggage handling. May be empty for facilities without commercial scheduled service.
gps_code
string
default
GPS navigation code for the airport; often the same as the ICAO code. May be empty.
local_code
string
default
Local country-specific airport code; primarily used for US airports (FAA identifier). May be empty.
coordinates
string
default
Geographic coordinates as a `"latitude, longitude"` decimal string, derived from the source `latitude_deg` and `longitude_deg` columns.
Airports, airfields, heliports and other aviation facilities from around the world, with their IATA codes (three letters, used in passenger reservation, ticketing and baggage handling), ICAO codes (four letters, used by air traffic control) and other identifiers, plus type, location and coordinates. The data comes from OurAirports.
Column definitions and types are in datapackage.json.
Data
data/airport-codes.csv has one row per facility.
archive/data.csv is an unchanged copy of the file downloaded from OurAirports, with all of its columns.
data/type-counts.csv is a small table of counts by facility type, including Closed. It is rebuilt from airport-codes.csv each time the data is updated.
Columns of data/airport-codes.csv:
Column
Meaning
ident
OurAirports identifier of the facility, for example KLAX or 00A. It is not always an ICAO code
type
large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport or closed
name
Name of the facility
elevation_ft
Elevation above sea level in feet. Empty when unknown
continent
Two-letter continent code: AF, AN, AS, EU, NA (North America), OC, SA
iso_country
Two-letter country code, for example US
iso_region
Country and region, for example US-CA
municipality
City or town served. Empty when unknown
icao_code
ICAO code, for example KLAX. Often empty
iata_code
IATA code, for example LAX. Often empty
gps_code
GPS code. Often the same as the ICAO code. May be empty
local_code
Code used inside the country, for example the FAA code in the US. May be empty
coordinates
Latitude and longitude in one text value: "33.942501, -118.407997"
Known limitations
Many rows have no iata_code or no icao_code, because many facilities have no such code. Do not use either column as a key.
The file includes closed facilities (type is closed). Filter on type if you only want facilities that are in use.
NA is a real value in two columns: continent (North America) and iso_country (Namibia). By default pandas reads NA as missing. Read the file as text and turn that off: pd.read_csv("data/airport-codes.csv", dtype=str, keep_default_na=False). Empty cells are then empty strings.
coordinates is one text column, not two numbers. To split it: lat_lon = df["coordinates"].str.split(", ", expand=True).astype(float). The original latitude_deg and longitude_deg columns are only in archive/data.csv.
Data sources
OurAirports (airports.csv): the list of airports, with all columns. OurAirports says it compiles its data from many sources, listed on its About page. Licence: public domain, as stated by OurAirports (see License).
Changes made to the source data: the file airports.csv is downloaded; latitude_deg and longitude_deg are combined into one coordinates column; the columns id, scheduled_service, home_link, wikipedia_link and keywords are removed. No rows are changed, added or removed.
Not endorsed by, or affiliated with, OurAirports.
Preparation
You need Python 3.12 or greater. To rebuild the data from the repository root:
# Install the requirements and run the scriptpip install-r scripts/requirements.txt
python3 scripts/process.py
# Or use makemakemake clean
The script downloads airports.csv into archive/data.csv, then writes data/airport-codes.csv. It then counts the facilities by type to write data/type-counts.csv and to update the counts used by the chart in datapackage.json.
A GitHub workflow runs the script every night (at 00:00 UTC) and on every push to main, and commits archive/, data/ and datapackage.json if they changed.
The data comes from OurAirports (https://ourairports.com/data/). OurAirports states: "All data is released to the Public Domain, and comes with no guarantee of accuracy or fitness for use." Credit is not required; OurAirports asks for it as a courtesy, and a credit line is in ATTRIBUTION.txt.
Two things are unclear. We did not find terms that answer either, so this package does not claim more than OurAirports' statement above:
OurAirports' own sources (for example government airport lists and GeoNames). OurAirports names them but we found no statement from them about reuse.
Any rights IATA or ICAO may hold in their code lists. The IATA code search page carries "All rights reserved" and we did not read IATA's or ICAO's terms.