mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 09:28:21 +02:00
Update locate-zip-code.ps1
This commit is contained in:
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user