1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-04 14:40:05 +02:00

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

@ -24,10 +24,11 @@ try {
foreach($Row in $Table) { foreach($Row in $Table) {
if ($Row.country -eq $CountryCode) { if ($Row.country -eq $CountryCode) {
if ($Row.postal_code -eq $ZipCode) { if ($Row.postal_code -eq $ZipCode) {
$Country=$Row.country
$City = $Row.city $City = $Row.city
$Lat = $Row.latitude $Lat = $Row.latitude
$Lon = $Row.longitude $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 $FoundOne = 1
} }
} }