Update locate-zip-code.ps1

This commit is contained in:
Markus Fleschutz 2020-12-16 12:11:01 +01:00 committed by GitHub
parent 03efbe6537
commit 4247da3ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,10 +24,11 @@ try {
foreach($Row in $Table) {
if ($Row.country -eq $CountryCode) {
if ($Row.postal_code -eq $ZipCode) {
$Country=$Row.country
$City = $Row.city
$Lat = $Row.latitude
$Lon = $Row.longitude
write-host "* $City is at $Lat°N, $Lon°W"
write-host "* $Country $ZipCode $City is at $Lat°N, $Lon°W"
$FoundOne = 1
}
}