Skip to main content

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:

FieldTypeDescription
CodestringThe full code as held in the list (identical to UNLocode).
CountryCodestringISO 3166-1 alpha-2 country code — first two characters.
LocationCodestringThree-character location identifier — last three characters.
CountryNamestringFull country name.
LocationNamestringLocation name as provided by UNECE, including diacritics.
LocationNameWoDiacriticsstringLocation name with diacritics stripped.
UNLocodestringThe full five-character UN/LOCODE.
Latitudenumber | nullLatitude in decimal degrees.
Longitudenumber | nullLongitude in decimal degrees.
Coordinates can be blank

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.