1. Introduction
OsmAnd is a full featured mobile Map application for both Android and iOS that is compatible with the PhoneTrack software bundled with most Private Cyberspace. Great for OFFLINE location logging in Android.
2. Android
Android Source Code:
Android Download:
Installation
Download and install OsmAnd from Play Store.
During the installation, you may be prompted to download the map of the region where you are located. It is recommended to do the installation using WiFi as the map size could be a few hundred megabytes and it might take a while for the installation to be completed [show image]
Once the installation has been completed, allow OsmAnd to use your location [show image]
The last step is to enable the "Trip recording" plugin by clicking the
button which is located at the bottom left hand corner, select Plugins and enable the "Trip recording" plugin [show image].
To start recording your trip, click on the button on the top right hand corner and select the "Start recording" button [show image]
To end the recording, click on "Rec" button again, select "Stop" [show image] and then select "Save and stop recording" [show image]
To export the GPX file:
- Select the button and go to "My Places"
- Select the "Tracks" tab [show] to display the saved tracks [show image]
- Tap the 3-dot menu button on the right, select "Share" [show image] and select where you want the GPX file to be stored, e.g: Google Drive [show]
Location of GPX
For most Android versions the OsmAnd GPX files are located in the same folder and path: /storage/Android/data/net.osmand/files/tracks/rec
However on some Android 11 phones (e.g. Samsung Galaxy Note 10), the directory and files are not visible. The work around is by changing the file location to “Multiuser Storage 1” which is in /storage/emulated/0/Android/obb/net.osmand in the OsmAnd settings.
3rd Party Programs
Phonetrack
The Nextcloud PhoneTrack app can accept lcoation updates from OsmAnd using the following sample URL:
https://example.com/apps/phonetrack/log/osmand/e1cf81fe33149f37aaaced2ab12345678/yourname?lat={0}&lon={1}&alt={4}&acc={3}×tamp={2}&speed={5}&bearing={6}
Traccar
Traccar uses the similar protocol as OsmAnd to send data back to server.
https://www.traccar.org/osmand/