More Features added to Geolocation API

This commit is contained in:
brotoskyj
2024-12-30 23:10:54 -05:00
parent c6c94ffc9a
commit 67e3d0f98f
30 changed files with 4 additions and 4121 deletions
+3 -3
View File
@@ -2206,9 +2206,9 @@ function geoLocationForm() {
$ispTextBox.Clear()
$countryTextBox.Clear()
$ipToSearch = $ipSearchBox.Text
$response = Invoke-RestMethod -Method GET -URI "https://api.iplocation.net/?ip=$ipToSearch"
$ispTextBox.Text = $response.ISP
$countryTextBox.Text = $response.Country_Name
$response = Invoke-RestMethod -Method GET -URI "http://ip-api.com/json/$ipToSearch"
$ispTextBox.Text = $response.isp
$countryTextBox.Text = $response.country
}
$geoLocationFormBox.ShowDialog()