mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Update locate-zip-code.ps1
This commit is contained in:
parent
03efbe6537
commit
4247da3ee5
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user