mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-08 22:10:14 +01:00
Updated latlong.ps1
This commit is contained in:
parent
38b31044bf
commit
3e1d7901e5
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
param([string]$City)
|
param([string]$City)
|
||||||
if ($City -eq "" ) {
|
if ($City -eq "" ) {
|
||||||
$City = read-host "Enter city"
|
$City = read-host "Enter the city"
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -23,7 +23,7 @@ try {
|
|||||||
$Lat = $Row.lat
|
$Lat = $Row.lat
|
||||||
$Long = $Row.lng
|
$Long = $Row.lng
|
||||||
$Population = $Row.population
|
$Population = $Row.population
|
||||||
write-host "✔️ $City ($Country, $Region, $Population people) is at $Lat°N, $Long°W"
|
write-host "* $City ($Country, $Region, population $Population) is at $Lat°N, $Long°W"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user