Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

datasets/un-locode

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badge

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.

Preparation

As the original release files have encoding problems, we need to process both the mdb and the csv release. To build the dataset we use the csv version of the current edition.

Tools needed: MDBTools and CSVKit. Download the current edition from UNECE and put it into the root directory. Then execute bash scripts/prepare_edition_mdb.sh loc{ed}mdb.zip, where {ed} identify the release.

To integrate the data from the csv then run the python file

Prerequisites:

pip install pandas titlecase

Run:

python scripts/integrate.py loc232csv.zip

The provided prepare.py file would work alone when the original csv file will be fixed upstream.

License

All data is licensed under the ODC Public Domain Dedication and Licence (PDDL).

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 12

Morty Proxy This is a proxified and sanitized view of the page, visit original site.