Leave Geographical Breadcrumbs with Geofix

Productivity Sauce
When I'm out and about, I often need to quickly record my current position. As an amateur photographer, I appreciate the ability to record the geographical coordinates of locations I plan to photograph later and spots I've already taken pictures of. The latter helps me to geotag my photos in digiKam. When I travel, I prefer to record the locations of good eateries, coffee shops, interesting places, etc. An Android device is perfect for this task, but none of the apps I tried fit my needs. So I cobbled together my own tool called Geofix. This relatively simple Python-based script can be used to obtain and store the geographical coordinates of the current location. The script uses both the network and GPS to obtain coordinates, and it stores the data in a text file and an SQLite database. This redundancy provides a fallback in case one of the sources is unavailable. The script also records the date and time for each entry and generates an OpenStreetMap link which can be used to preview the recorded location. There is also an option to take an accompanying snapshot.
Geofix comes with a simple web app based on the Python bottle framework. You can use the web app to view records in the SQLite database using a regular browser.

To deploy Geofix on your Android device, install the SL4A and PythonForAndroid APK packages from Android Scripting first. Copy then the geofix.py script to the sl4a/scripts directory on the internal storage of your Android device, and you are good to go. Open the SL4A app, and launch the script. For faster access, you can add to the homescreen an SL4A widget that links to the script.
Instead of using SL4A and Python for Android, which are all but abandoned by Google, you can opt for QPython. In this case, you need to use the geofix-qpython.py script. Copy it to the com.hipipal.qpyplus/scripts directory, and use the QPython app to launch the script.
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
LibreOffice 25.2 Has Arrived
If you've been hoping for a release that offers more UI customizations, you're in for a treat.
-
TuxCare Has a Big AlmaLinux 9 Announcement in Store
TuxCare announced it has successfully completed a Security Technical Implementation Guide for AlmaLinux OS 9.
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.