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
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.