Published

SMDG Master Terminal Facilities List

91
127

Code list for terminal facilities built as an extension to UN/LOCODE

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

/core/smdg-master-terminal-facilities-list/
https://datahub.io/core/smdg-master-terminal-facilities-list/_r/-/.gitignore
https://datahub.io/core/smdg-master-terminal-facilities-list/_r/-/README.md
https://datahub.io/core/smdg-master-terminal-facilities-list/_r/-/data/smdg-master-terminal-facilities-list.csv
https://datahub.io/core/smdg-master-terminal-facilities-list/_r/-/datapackage.json
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.jsonmetadata & schema
https://datahub.io/core/smdg-master-terminal-facilities-list/_r/-/datapackage.json
README.mddocumentation
https://datahub.io/core/smdg-master-terminal-facilities-list/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.json to inspect schema and resources
  2. 2. Download data resources listed in datapackage.json
  3. 3. Read README.md for full context

Data Previews

smdg-master-terminal-facilities-list

Loading data...

Schema

nametypedescription
UNLOCODEstringMain location UN/LOCODE. In an UN/EDIFACT message, use in a LOC segment, element C517.3225
Alternative UNLOCODEstring
Terminal CodestringIn an UN/EDIFACT message, use in a LOC segment, element C519.3223
Terminal Facility Namestring
Terminal Company Namestring
Last ChangedateLast change of this entry
Valid FromdateEntry is valid from this date
Valid UntildateEntry is valid till this date
Terminal Websitestring
Terminal Addressstring
Remarksstring
Coordinatesstring

Data Files

FileDescriptionSizeLast modifiedDownload
smdg-master-terminal-facilities-list
293 kB13 days ago
smdg-master-terminal-facilities-list
FilesSizeFormatCreatedUpdatedLicenseSource
1293 kBcsv13 days agoOpen Data Commons Public Domain Dedication and License v1.0SMDG Terminal Code List (GitHub)

badge

SMDG Terminal Code List

List maintained by the SMDG Secretariat to specify the port terminal facilities in UN/EDIFACT messages. The list is directly linked with the UN/LOCODE codelist (see data package)

Data Source

This dataset is automatically synced from the official SMDG GitHub repository:

The data is updated automatically when changes are pushed to the GitHub repository.

Data Format

The CSV file contains the following columns:

  • UNLOCODE: Main location UN/LOCODE
  • Alternative UNLOCODE: Alternative UN/LOCODE codes
  • Terminal Code: Terminal facility code
  • Terminal Facility Name: Name of the terminal facility
  • Terminal Company Name: Company operating the terminal
  • Latitude (DMS): Latitude in Degrees Minutes Seconds format
  • Longitude (DMS): Longitude in Degrees Minutes Seconds format
  • Latitude: Latitude in decimal degrees
  • Longitude: Longitude in decimal degrees
  • Last Change: Date of last modification
  • Valid From: Date when the entry became valid
  • Valid Until: Date when the entry expires
  • Terminal Website: URL of the terminal's website
  • Terminal Address: Physical address of the terminal
  • Remarks: Additional notes

Example

Example segment where the main location is RULED (UN/LOCODE for Saint Petersburg, Russia) and the facility is PLP (SMDG code for Petrolesport).

LOC+11+RULED:139:6+PLP:72:306

Preparation

The update process is automated via a Python script:

# Install requirements
pip install -r scripts/requirements.txt

# Run the update script
python scripts/process.py

The script will:

  1. Check for updates on GitHub
  2. Download the latest CSV file if available
  3. Process the CSV to match the expected format
  4. Update the datapackage.json with the new version

Automation

Up-to-date (auto-updates when GitHub source is updated) smdg dataset could be found on the datahub.io: https://datahub.io/core/smdg-master-terminal-facilities-list

License

All data is licensed under the Creative Commons 4.0 Attribution License. You may need to attribute the specific code to the SMDG Secretariat.