Trip log: a trip is a library folder (Trips/<date> <name>) with the planned route and its stops; the car's GNSS recorded into its track there (10 m steps, written every minute and at the end), GET/POST/DELETE /api/trip/log; the Trip menu's Start / End and the line really driven (--route-driven); along-route POI mode for the plugins in TODO
This commit is contained in:
1 parent
809e88ab1a
commit
7d72e9eb63
7 files changed
+279
-1
No files matched your search
@@ -17,6 +17,10 @@ independence from connectivity.
|
||||
* [x] Overpass/OSM scripts to extract POIs (drinking water, dump stations, LPG, public toilets, laundromats, shops, springs) — `rake overpass:pois`, see docs/development.adoc; writes a `.geojson` to drop in `data/gpx/` or upload. Also runnable from inside the app itself now, see the import plugins entry below (`plugins/overpass-pois` wraps this same query). Each category now carries a real `POI_ICONS` glyph and color (not p4n2gpx's plain red marker) plus a popup description built from opening_hours/operator/website tags
|
||||
* [x] Import plugins: a pluggable way to add more data sources (Park4Night, iOverlander, Freecampsites, ...) without their scrapers necessarily living in this (public) repo — sidebar icon (logged in only) lists whatever's under `plugins/`, "Run for this area" uses the current map viewport as the bbox, no separate area-picker needed. Contract: a `plugin.json` manifest + a script that reads `--south`/`--west`/`--north`/`--east` and prints a GeoJSON `FeatureCollection` to stdout (`lib/maptool/plugins.rb`, `GET /api/plugins`, `POST /api/plugins/:name/run`) — output saved the same way an upload would be. `plugins/overpass-pois` ships as the reference example; a private/ToS-sensitive scraper just drops its own directory in locally and is never `git add`ed
|
||||
** [x] Park4Night — private plugin (`data/plugins/p4n2gpx/`, outside this repo per the "ToS-sensitive scraper" note above); iOverlander/Freecampsites still open, same story
|
||||
** [ ] Along the planned route (2026-12-01): Park4Night and overpass-pois fetch the whole
|
||||
viewport/bbox today — a second mode for a corridor around the route (a few km either side):
|
||||
the plugin contract gains the route (a polyline / buffered boxes, not one big bbox), the
|
||||
results into the trip's folder
|
||||
** [x] A private plugin's own dependencies now have somewhere to live too: `data/plugins/` is under the persistent `data/` bind mount (survives a redeploy, unlike `build/`), and `docs/deployment.adoc` documents the convention
|
||||
* [x] Kiwix/ZIM offline Wikipedia linked to POI GPS coordinates — proxied through this app (`GET /kiwix/*` in app.rb) rather than a direct link to kiwix-serve — production sits behind a reverse proxy that only forwards to this app, so no address exists for a browser to reach kiwix-serve at directly; kiwix-serve runs with `--urlRootLocation=/kiwix` so its own emitted links already match. `KIWIX_URL` + `GET /api/kiwix` reachability check, same optional-integration pattern as offline.pmtiles/terrain.pmtiles; `docker-compose.yaml` now runs a `kiwix` service, ZIM not included (see docs/development.adoc for where to get one)
|
||||
** [x] Replaced the old per-popup "Nearby on Wikipedia" link (one POI at a time, easy to miss) with a standalone "Wikipedia" layer under Tracks & Points — a live `GET /api/kiwix/nearby` refetch on every pan/zoom, not a saved file. kiwix-serve's own geo search never echoes back a result's coordinates, so `Maptool::Kiwix.nearby` fetches each matching article's own page too and reads its `<meta name="geo.position">` tag — verified against the real production ZIM (~1.6s for a 30-result page; tried parallelizing those fetches with threads, no measured gain, kept sequential)
|
||||
@@ -113,6 +117,14 @@ plan from — the server does the heavy lifting. The UI is built for a mouse tod
|
||||
whatever else carried a position — a Garmin LiveTrack session (already in), the MQTT
|
||||
tracker, a LoRa/Meshtastic node later — or the watch's FIT imported afterwards (the
|
||||
library reads FIT); else just the point, visited by hand
|
||||
** [x] A trip is a library folder (Trips/<date name>): routes per activity, points, tracks (the
|
||||
car's log, a watch's FIT, LiveTrack) in it; "Start trip" makes it the active one and
|
||||
records the car's GNSS into it (saved as it goes), "End trip" closes it. Its pictogram:
|
||||
the folder's `icon` — by hand (the notes' icon picker, POI_ICONS / NPS) or, unset, from its
|
||||
points (the destination's, else the most common)
|
||||
Done: `lib/maptool/trip_log.rb`, `GET/POST/DELETE /api/trip/log`, the Trip menu's
|
||||
Start / End, the line really driven (`--route-driven`). Still to do: the pictogram, the
|
||||
planned route dashed behind, a walk from another device shown with it, visited points
|
||||
** [ ] Colors: planned vs really driven — the planned route (magenta ahead, the part behind
|
||||
thin and dashed) and the recorded track solid on top (`--route-driven`), docs/design.adoc
|
||||
** [ ] The menu while driving: showing routes and points, editing the trip — all of it on the
|
||||
|
||||
Reference in new issue
Block a user