United Nations Code for Trade and Transport Location UN/Locode
- Use external source of LOCODE
- Code to translate country and name/city and reverse.
- Build container
- Azure App
- Azure Function
.\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
docker run --rm --env location=yng --env country=se klaspihl/unlocode
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"
}