Tool
UN/LOCODE lookup
A UN/LOCODE is the five-character code the United Nations gives to ports and other places used in trade and transport: two letters for the country, three for the place. Enter one to see what it stands for and open the port’s page.
Not case-sensitive; a space after the country (NL RTM) is fine. To search by name, use the port directory.
UN/LOCODE SGSIN
- Country
- SG — Singapore
- Place code
- SIN
- Place
- Singapore
- Position
- 1.283° N, 103.850° E
Open Singapore: ships in port, on their way, arrivals and departures
How a UN/LOCODE is built
The first two letters are the country’s ISO 3166-1 code — NL for the Netherlands, SG for Singapore. The last three identify the place within the country, usually letters chosen to recall its name (RTM for Rotterdam), with digits used when the letters run out. Together they make codes like NLRTM and SGSIN.
The code list also records what each place is used for — seaport, rail terminal, road terminal, airport and so on — which is how a ship-tracking site can tell a port from an inland town with the same name.
UN/LOCODEs in AIS
A ship’s AIS transponder broadcasts a destination as up to 20 characters of free text typed by the crew. The recommended practice is to enter the UN/LOCODE of the next port, and many crews do, but plenty type a name, an abbreviation or nothing useful. VesselTrack matches what is typed to a port where it can, which is what drives the “on the way” lists on port pages. How that works, and why ETAs are so often wrong, is in Destinations, ETAs and UN/LOCODEs.
To find a port by name rather than code, use the port directory, which searches names, cities and countries as well as codes.
Sources
- UNECE — UN/LOCODE (United Nations Code for Trade and Transport Locations)The code list, its structure and the function classifier that marks a place as a port.
- US Coast Guard Navigation Center — Class A AIS position report and static/voyage dataThe 20-character destination field in the AIS static and voyage message.