Find current geographic coordinates from Python script

I am attached to get a specific Python script (although, I think, in fact, this is not the language that matters here) to find out the current geographic location of the machine on which it works. As you might have guessed, this is a little script that reports the location of my laptop when it boots up and something like that :)
Is there a free web service or API for this? I was impressed by the ability of Google Maps to accurately determine my home (it was turned off by only ~ 5 meters!).

+2
python api geolocation location
source share
2 answers

I came across this Python script http://netsekure.org/wp-content/uploads/ip2loc.py , which may be something similar to what you are looking for.

+3
source share

You might be able to use the Google GeoLocation API (API docs here ). From the docs:

"Communication is done over HTTP, with Gears making a request using HTTP POST. Both requests and responses are formatted as JSON and the content type is application / json."

Below is the java module version of the python standard library here .

+1
source share

All Articles