Skip to content

United Nations Codes for Trade and Transport Locations (UN/LOCODE) and Country Codes

Notifications You must be signed in to change notification settings

cmsdroff/un-locode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UN-LOCODE datapackage

The United Nations Code for Trade and Transport Locations is a code list mantained by UNECE, United Nations agency, to facilitate trade.

Data

Data comes from the UNECE page, released at least once a year. The files released in this package are extracted from the mdb archive to preserve UTF-8 encoding.

Build dataset

Tools: MDBTools and CSVKit.

  • List tables mdb-tables 2014-2\ UNLOCODE\ CodeList.mdb
  • Extract from mdb file: mdb-export 2014-2\ UNLOCODE\ CodeList.mdb "2014-2 UNLOCODE CodeList" > mdb_codelist.csv
  • Clean resulting csv: csvclean mdb_subdivisioncodes.csv
  • Remove country headers in codelist script/rmstr.php old_code-list.csv

Tables:

  • "2014-2 UNLOCODE CodeList" > code-list.csv
  • "CountryCodes" > country-codes.csv
  • "FunctionClassifiers" > function-classifiers.csv
  • "StatusIndicators" > status-indicators.csv
  • "SubdivisionCodes" > subdivision-codes.csv

About

United Nations Codes for Trade and Transport Locations (UN/LOCODE) and Country Codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%