'How to use this library in python "from digidevice import location"?

How can I get coordinates from user's device, using this library in python: "from digidevice import location". I tried, but cant even import this library.



Solution 1:[1]

This should help: link

It seems like this will work:

from digidevice import location
loc = location.Location()
print(loc.position)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Godz