It used to be that the favourites.gpx file was only ever written, not read,
by OsmAnd. But now on a full OsmAnd restart it is imported. This means you
can sync your favourites between devices by syncing the favourites.gpx
file. I've been using Syncthing https://syncthing.net/ (free, open source)
successfully.
If you use a file manager to open a .gpx POI file with OsmAnd, and choose
to import as favourites then OsmAnd adds the contents intelligently to your
existing favourites, preserving categories and avoiding duplicates. It
seems that on startup it now imports favourites.gpx in the same way. Thus,
by syncing favourites.gpx between devices you can sync additions to your
favourites, but you still need to make any deletions manually on each
device.
Syncthing works between folders, but these can be in different locations.
I've been syncing favourites.gpx between an Android 4.4 OsmAnd installation
on a phone's SD card, and the built-in storage of an Android 9 tablet. To
sync only favourites.gpx, not the whole folder, then Syncthing's ignore
pattern for the folder should be:
!favourites.gpx
*
(This resides in a text file called .stignore that you can create in an
editor or during setup of the synced folders in Syncthing.) See "Ignoring
files" in the Syncthing documentation.
Other than choosing to start Syncthing automatically on device boot, I've
been using all default settings. This means only syncing while on WiFi. If
you add to favourites on multiple devices while they're unconnected, there
will be a conflict that Syncthing handles. But if you do it while they're
connected there's no problem: on the next full restart of OsmAnd each
device will see all of the newly added favourites.
I hope this is of interest to someone, and as ever thanks to the devs: I've
been wanting to be able to do this for ages!
--
You received this message because you are subscribed to the Google Groups
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osmand+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/osmand/4a5a80be-f9d7-49ac-8373-d3907ace437b%40googlegroups.com.