Packages

Ports is a collection of United Nations Code for Trade and Transport Locations or known as "UN/LOCODE".

Current section

Files

Jump to
ports README.md
Raw

README.md

# Ports
**TODO: Add description**
## Installation
[Available in Hex](https://hex.pm/packages/ports), the package can be installed
by adding `ports` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ports, "~> 0.1"}
]
end
```
## Updating
1. Download the UNLOCODE csv from [UNECE](https://unece.org/trade/cefact/UNLOCODE-Download)
2. Save the downloaded files to folder `priv/data`
3. Update module attribute `@code_list_sources` in `Ports.Loader` with the downloaded file names