nspcc-dev / locode-db

Source of UN/LOCODE database generated by NeoFS CLI.
MIT License
3 stars 6 forks source link

Create new locode package wrapper #17

Closed roman-khimov closed 11 months ago

roman-khimov commented 1 year ago

After #16 a package can be created here providing a simple function to resolve locode into a structure similar to the one we have now (with country/continent expanded). This package would embed (https://pkg.go.dev/embed) gzipped files with this data (generated from the Makefile and (unfortunately) stored here) and unpack them on the first access to the DB (https://pkg.go.dev/sync#Once). Then a binary search can be implemented over unpacked data and that's it.

roman-khimov commented 11 months ago

And this one as well