Installable PWA with a share target; design for an item-based library
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 13s

Android's share sheet (OsmAnd, Locus, mapy.com, ...) can now send
GPX/FIT/GeoJSON/ZIP files to the installed app: the service worker parks
them and the page offers to import them into a Tracks & Points folder,
waiting through a login if needed. Manifest, app icon, a server-side
fallback for /share-target.

docs/library-design.adoc proposes replacing the file-based GpxStore with
folders and items (stable ids, timestamps, tombstones, a change feed) as
the base for syncing with OsmAnd and Locus.
This commit is contained in:
randy committed 2026-11-12 13:42:04 +01:00
1 parent e2461f794c
commit 25b87b94fe
14 files changed
+637 -5

No files matched your search

+7
View File
@@ -70,6 +70,13 @@ independence from connectivity.
** [x] Kiwix as a source — full-text search of the ZIM (`Kiwix.search`), each hit's coordinates read from its page like the Wikipedia layer does; clicking opens the article (and jumps to it when it has coordinates)
** [x] Nearest first — every result carries its distance from the map center and the list is sorted by it across all sources; settlements count as closer (city x0.01 … suburb x0.3, `Places::DISTANCE_WEIGHT`) so a town's name still finds the town. Nominatim gets the visible area as a (non-restricting) `viewbox`
== Sync with OsmAnd / Locus / mapy.com
* [x] Installable PWA with a share target — `public/manifest.webmanifest`, `public/sw.js` parks files shared from Android's share sheet (OsmAnd, Locus, mapy.com — the last has no API at all), `public/js/share_import.js` offers to import them into a Tracks & Points folder (login required, files wait until then)
* [ ] Item-based library replacing the file-based `GpxStore` — design in `docs/library-design.adoc`
* [ ] Change feed + GPX export flavors for OsmAnd/Locus
* [ ] Android sync client (MapTool → apps first; apps → MapTool only if their APIs can list data)
== Nice to have (later)
Deprioritized for now — revisit after the sections above land.