An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          


NeoFS



UN/LOCODE database for NeoFS

---
[![Go Reference](https://pkg.go.dev/badge/github.com/nspcc-dev/locode-db/pkg/locodedb.svg)](https://pkg.go.dev/github.com/nspcc-dev/locode-db/pkg/locodedb)
![GitHub release](https://img.shields.io/github/release/nspcc-dev/neofs-locode-db.svg)
![GitHub license](https://img.shields.io/github/license/nspcc-dev/neofs-locode-db.svg?style=popout)

# 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.