Back to directory
parinporecha avatar

GeoClue2-Locator-python

Demo of GeoClue2 (A GeoLocation Service) and libchamplain (A library to display maps). Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/parinporecha/GeoClue2-Locator-python.git

2

Stars

2

Forks

1

Watchers

License

You need to install GeoClue2 on your machine before running the code.

  • This page contains the links to download GeoClue2 for Arch, Fedora, OpenSuse and AltLinux
  • For Debian based systems, this page has the .deb package

Then you can run where-am-i.py It will print your location and exit after 10 seconds.

Known issues -

Code runs but the location doesn't get printed

  • For this, run geoclue executable as root in another terminal. Location of the executable is in org.freedesktop.GeoClue2.service file