Example for how to use GeoClue2 to grab location information and libchamplain to display the location on a map.
geoclue2client.py
is based off of the sample code from the
dbus python tutorial and code found
here. geoclue2demo
is based off of example code found in the
libchamplain package.
To see how to use the class, take a look inside
geoclue2client.py
(which runs from the command-line interface) or
inside geoclue2demo.py
(which runs from a GUI).
You should at least install geoclue2, libchamplain, libchamplain-gtk before running these examples.