UN/LOCODE
UN/LOCODE is the United Nations Code for Trade and Transport Locations — a code system maintained by UNECE that assigns a unique identifier to locations involved in trade and transport worldwide: seaports, airports, inland freight terminals, border crossings, and more.
Each code is a five-character string:
- the first two letters are the ISO 3166-1 country code, and
- the remaining three characters identify the location within that country.
So DKAAR is DK (Denmark) + AAR (Aarhus), and GBLON is GB (United Kingdom)
LON(London). Searches take the full five-character code, in any case.
Fields
Whether you search on the site or through the API, a match returns the same record:
| Field | Type | Description |
|---|---|---|
Code | string | The full code as held in the list (identical to UNLocode). |
CountryCode | string | ISO 3166-1 alpha-2 country code — first two characters. |
LocationCode | string | Three-character location identifier — last three characters. |
CountryName | string | Full country name. |
LocationName | string | Location name as provided by UNECE, including diacritics. |
LocationNameWoDiacritics | string | Location name with diacritics stripped. |
UNLocode | string | The full five-character UN/LOCODE. |
Latitude | number | null | Latitude in decimal degrees. |
Longitude | number | null | Longitude in decimal degrees. |
UNECE leaves coordinates blank for many locations. Where the source value is blank
or malformed, Latitude and Longitude are null — the site shows them as —.
Data source and freshness
The list is ingested from the official UNECE UN/LOCODE dataset covering every country — around 100,000 locations. It refreshes automatically each January and July, following UNECE's twice-yearly publication cycle, so new and amended locations appear shortly after UNECE releases them.