https://github.com/nspcc-dev/locode-db
Source of UN/LOCODE database generated by NeoFS CLI.
https://github.com/nspcc-dev/locode-db
Last synced: 4 months ago
JSON representation
Source of UN/LOCODE database generated by NeoFS CLI.
- Host: GitHub
- URL: https://github.com/nspcc-dev/locode-db
- Owner: nspcc-dev
- License: mit
- Created: 2021-02-10T09:06:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-10-21T19:49:40.000Z (7 months ago)
- Last Synced: 2025-10-21T21:28:47.918Z (7 months ago)
- Language: Go
- Size: 15.6 MB
- Stars: 3
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
UN/LOCODE database for NeoFS
---
[](https://pkg.go.dev/github.com/nspcc-dev/locode-db/pkg/locodedb)


# Overview
This repository contains UN/LOCODE DB in a Go package. It can be used to get additional information about continent, country code and name, location, geo-position, subdivision based on LOCODE.
## Prerequisites
- [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download)
database in CSV format
- [OpenFlight Airports](https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat)
database
- [OpenFlight Countries](https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat)
database
## Usage
Import `github.com/nspcc-dev/locode-db/pkg/locodedb` into your project and use its API.
## Development
Just run `make` to regenerate CSV files with [locodes](https://github.com/nspcc-dev/locode-db/locodedb/locodes.csv.gz) and [countries](https://github.com/nspcc-dev/locode-db/locodedb/countries.csv.gz).
``` shell
$ make
```
## License
This project is licensed under the MIT license - see the [LICENSE.md](LICENSE.md)
file for details.