Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get physical position of device with Python?

Is there a way to get the computer's physical position using Python, preferably without an API, or with a free API? I've searched around a bit, and the only free API I've found is very, very inaccurate. I only need this to be somewhat accurate, as it's for getting local weather.

like image 453
tkbx Avatar asked Oct 12 '25 03:10

tkbx


1 Answers

You can try using MaxMind's GeoIP Python API with their free GeoLite City database. Accuracy may vary, more details here.

Also take a look at this question for other alternatives.

like image 152
Paulo Freitas Avatar answered Oct 14 '25 16:10

Paulo Freitas