API AccessAccess dataset files directly from scripts, code, or AI agents.
Browse dataset files
Access dataset files directly from scripts, code, or AI agents.
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.
Start with these files — they give you everything you need to understand and access the dataset.
- 1. Fetch datapackage.json to inspect schema and resources
- 2. Download data resources listed in datapackage.json
- 3. Read README.md for full context
Data Previews
smdg-master-terminal-facilities-list
Schema
| name | type | description |
|---|---|---|
| UNLOCODE | string | Main location UN/LOCODE. In an UN/EDIFACT message, use in a LOC segment, element C517.3225 |
| Alternative UNLOCODE | string | |
| Terminal Code | string | In an UN/EDIFACT message, use in a LOC segment, element C519.3223 |
| Terminal Facility Name | string | |
| Terminal Company Name | string | |
| Last Change | date | Last change of this entry |
| Valid From | date | Entry is valid from this date |
| Valid Until | date | Entry is valid till this date |
| Terminal Website | string | |
| Terminal Address | string | |
| Remarks | string | |
| Coordinates | string |
Data Files
| File | Description | Size | Last modified | Download |
|---|---|---|---|---|
smdg-master-terminal-facilities-list | 293 kB | 13 days ago | smdg-master-terminal-facilities-list |
| Files | Size | Format | Created | Updated | License | Source |
|---|---|---|---|---|---|---|
| 1 | 293 kB | csv | 13 days ago | Open Data Commons Public Domain Dedication and License v1.0 | SMDG Terminal Code List (GitHub) |
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:
- Source: https://github.com/smdg-org/Terminal-Code-List
- File: SMDG Terminal Code List.csv
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:
- Check for updates on GitHub
- Download the latest CSV file if available
- Process the CSV to match the expected format
- 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.