Library phase 3: change feed and folder export for Locus (GPX) and OsmAnd (favourites + tracks zip)
This commit is contained in:
1 parent
cca985d2b9
commit
59447c56f2
8 files changed
+305
-3
No files matched your search
@@ -2,7 +2,7 @@
|
||||
:toc:
|
||||
:toclevels: 2
|
||||
|
||||
Status: *phases 1–2 implemented* (`lib/maptool/library.rb`, see Decisions); phases 3–4 proposed. Replaces the file-based store behind
|
||||
Status: *phases 1–3 implemented* (`lib/maptool/library.rb`, see Decisions); phase 4 (the Android client) proposed. Replaces the file-based store behind
|
||||
Tracks & Points (`GpxStore`) with an item-based library that OsmAnd, Locus
|
||||
Map and the MapTool web app can all be synced against.
|
||||
|
||||
@@ -341,6 +341,28 @@ removed once nothing uses them.
|
||||
* `GpxStore` stays, since unsplit layers are still drawn from it. It goes
|
||||
away once nothing is a layer any more.
|
||||
|
||||
== Decisions (phase 3)
|
||||
|
||||
* `GET /api/library/changes?since=<rev>`: folders and items with
|
||||
`rev > since`, tombstones as `"deleted": true`, plus the current `rev`,
|
||||
read in one transaction. A layer comes without geometry; it's a legacy
|
||||
file until split. Login-only for now. The Android client will need a
|
||||
token instead of the browser session (phase 4).
|
||||
* `GET /api/library/export?folder=<path>&flavor=locus|osmand`, from the
|
||||
folder's own menu (and the panel header for the top level). It covers
|
||||
the folder's own items, not its subfolders.
|
||||
** Locus: one GPX with points, tracks and routes together.
|
||||
** OsmAnd: a zip. `favourites.gpx` holds the loose points, with the
|
||||
folder path as their `<type>` group ("Van / CZ") and duplicate names
|
||||
made unique ("Gate (2)"). `tracks/<folder path>/<name>.gpx` holds
|
||||
one file per track, route or layer, with that item's own points in
|
||||
it.
|
||||
* GPX writing (`Gpx.from_features`): colors as `<osmand:color>`, which is
|
||||
what import reads back, and on lines also gpx_style `<line><color>`,
|
||||
which Locus reads. Not verified yet against files the apps export
|
||||
themselves; adjust the tags once a real OsmAnd/Locus export is at
|
||||
hand.
|
||||
|
||||
== Open questions
|
||||
|
||||
* Folder depth over 3 — fine to require Locus Premium?
|
||||
|
||||
Reference in new issue
Block a user