Skip to content

United Nations Code for Trade and Transport Location

Notifications You must be signed in to change notification settings

klaspihl/UN-Locode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UN-Locode

United Nations Code for Trade and Transport Location UN/Locode

Project

  1. Use external source of LOCODE
  2. Code to translate country and name/city and reverse.
  3. Build container
  4. Azure App
  5. Azure Function

1 Source

Codes for Trade

2 Code

Powershell

Code in src

.\find-UNlocation.ps1 -name Helsingborg  -Exceptions ..\res\exceptions.json -Verbose
VERBOSE: Exceptions requested
VERBOSE: Exceptions added to UN/LOCODE data
VERBOSE: Find location on location name
VERBOSE: Added exception gives multiple locations, return location in exception

Location    : HBG
LocatioName : Helsingborg
Country     : SE
CountryName : Sweden
Coordinates : 
.\find-UNlocation.ps1 -name Ystad
VERBOSE: Find location on location name

Location    : YST
LocatioName : Ystad
Country     : SE
CountryName : Sweden
Coordinates : +55.42 ,+13.82

Container

Dockerhub

docker run --rm --env location=yng --env country=se  klaspihl/unlocode

Dockerfile

docker run --rm --env name=yngsjö --env country=se  unlocode:lts-alpine-3.14
{
  "Location": "YNG",
  "LocatioName": "Yngsjö",
  "Country": "SE",
  "CountryName": "Sweden",
  "Coordinates": "+55.88,+14.22"
}

Additional Resources

About

United Nations Code for Trade and Transport Location

Topics

Resources

Stars

Watchers

Forks