Sign inSign up

klaspihl/unlocode

By klaspihl

•Updated 20 days ago

UN/Locode translator. Short location name to full location names.

Image
Integration & delivery
0

4.3K

klaspihl/unlocode repository overview

⁠UN/Locode

United Nations Code for Trade and Transport Location UN/Locode⁠

⁠Function

Contaner translate location code to name and back. If multiple location codes is found they can be selected by adding country. In some cases a coordinates to the location is avaiable and those coordinates is translated to long/lat working with maps⁠

⁠Examples

⁠From Name to location code
docker run --rm --env name=yngsjö --env country=se  klaspihl/unlocode
⁠Result
{
  "Location": "YNG",
  "LocatioName": "Yngsjö",
  "Country": "SE",
  "CountryName": "Sweden",
  "Coordinates": "+55.88,+14.22"
}
⁠From location code to name
docker run --rm --env location=yng --env country=se  klaspihl/unlocode

⁠Quick reference

Maintained by: GitHub.com/klaspihl⁠

Requests or help GitHub Issue⁠

Tag summary

Content type

Image

Digest

sha256:5f4d5ce66…

Size

6 MB

Last updated

20 days ago

docker pull klaspihl/unlocode