Using Windows Location Services in Python Script

I do some research and cannot find any information on this topic. I am using a version of Windows 10 that has a GPS function for applications that can be activated or deactivated by the user. I want to know how to access and use it through a python script, assuming this is even possible.

Note. I don’t want any solution to get location through IP geolocation service. It is very similar to using the gps service of a mobile device in Android applications.

Preferably python3 libraries and modules.

+8
python windows geolocation gps
source share
2 answers

On the one hand, from the Microsoft Location API documentation you will find LocationDisp.DispLatLongReport , which has the following properties:

  • Height
  • Altitudeerrror
  • Errorradius
  • Latitude
  • Longitude
  • Mark

And on the other hand, using the Python pywin32 module (or ctype ), you will get access to the Windows API (or any Windows DLL), so finally you can get Lat and Long as you want.

If you need help to use the pywin32 module, you can take a look here . If you need help, you can use the pywin32 module here .

+4
source share

Can someone help with this issue? I am trying to use Windows location services in Python and I don't know how to do this?

0
source share

All Articles