{"id":20354669,"url":"https://github.com/datasets/un-locode","last_synced_at":"2025-04-04T19:12:14.752Z","repository":{"id":19593529,"uuid":"22844016","full_name":"datasets/un-locode","owner":"datasets","description":"United Nations Codes for Trade and Transport Locations (UN/LOCODE) and Country Codes","archived":false,"fork":false,"pushed_at":"2025-03-04T11:28:18.000Z","size":28087,"stargazers_count":152,"open_issues_count":2,"forks_count":58,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-03-28T18:14:58.058Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://datahub.io/core/un-locode","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"nacker/LZEasemob3","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datasets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-11T15:28:13.000Z","updated_at":"2025-03-27T17:23:12.000Z","dependencies_parsed_at":"2024-07-30T16:57:42.426Z","dependency_job_id":"b2418e2c-70d4-449a-9f34-4d45c6a2a665","html_url":"https://github.com/datasets/un-locode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fun-locode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fun-locode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fun-locode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datasets%2Fun-locode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datasets","download_url":"https://codeload.github.com/datasets/un-locode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T23:09:20.381Z","updated_at":"2025-04-04T19:12:14.735Z","avatar_url":"https://github.com/datasets.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca className=\"gh-badge\" href=\"https://datahub.io/core/un-locode\"\u003e\u003cimg src=\"https://badgen.net/badge/icon/View%20on%20datahub.io/orange?icon=https://datahub.io/datahub-cube-badge-icon.svg\u0026label\u0026scale=1.25\" alt=\"badge\" /\u003e\u003c/a\u003e\n\nThe United Nations Code for Trade and Transport Locations is a code list mantained by UNECE, United Nations agency, to facilitate trade.\n\n## Data\n\nData comes from the [UNECE page](http://www.unece.org/cefact/locode/welcome.html), released at least once a year.\n\n## Preparation\n\nAs the original release files have encoding problems, we need to process both the mdb and the csv release.\nTo build the dataset we use the csv version of the current edition.\n\nTools needed: [MDBTools](http://mdbtools.sourceforge.net/) and [CSVKit](https://github.com/onyxfish/csvkit).\nDownload the current edition from [UNECE](https://www.unece.org/cefact/codesfortrade/codes_index.html) and put it into the root directory.\nThen execute `bash scripts/prepare_edition_mdb.sh loc{ed}mdb.zip`, where `{ed}` identify the release.\n\nTo integrate the data from the csv then run the python file\n\nPrerequisites:\n\n```\npip install pandas titlecase\n```\n\nRun:\n\n```\npython scripts/integrate.py loc232csv.zip\n```\n\nThe provided `prepare.py` file would work alone when the original csv file will be fixed upstream.\n\n## License\n\nAll data is licensed under the [ODC Public Domain Dedication and Licence (PDDL)](http://opendatacommons.org/licenses/pddl/1-0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasets%2Fun-locode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatasets%2Fun-locode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatasets%2Fun-locode/lists"}