Open DJTommek opened 3 years ago
Free API, that could be used: https://ip-api.com/ Request: http://ip-api.com/json/24.48.0.1 Response:
{
"status": "success",
"country": "Canada",
"countryCode": "CA",
"region": "QC",
"regionName": "Quebec",
"city": "Montreal",
"zip": "H1A",
"lat": 45.6752,
"lon": -73.5022,
"timezone": "America/Toronto",
"isp": "Le Groupe Videotron Ltee",
"org": "Videotron Ltee",
"as": "AS5769 Videotron Telecom Ltee",
"query": "24.48.0.1"
}
Example input and their coordinates
50.0880, 14.4208
50.087736,14.422685
IP addresses loaded using ping, coordinates gathered from https://www.iplocation.net/ip-lookup
Description (optional)
If IP address is provided, try to use some geolocation API service to get location.