Commit Graph
391 Commits
Author SHA1 Message Date
randy 3146478c23 Offline routing phase 2: route panel, /api/route via Valhalla, vehicle profile, save a route to the library 2026-11-13 22:34:47 +01:00
randy d93c77727f Atomic, EOF-checked extract downloads; Apply starts builds one after another so routing waits for the offline map's downloads 2026-11-13 22:28:37 +01:00
randy bf912b96e5 Offline routing phase 1: valhalla container building from the offline map's extracts, status in the Offline data panel
CI / check (push) Successful in 55s
CI / deploy (push) Successful in 2m48s
2026-11-13 21:24:19 +01:00
randy 6f5f11cb4d Library phase 2: rename/recolor nodes, rename and move folders, split a layer into items; offline routing design 2026-11-13 21:16:35 +01:00
randy 4d838395b8 Merge pull request 'Update https://github.com/hyperknot/openfreemap-styles digest to 006ea57' (#23) from renovate/https-github.com-hyperknot-openfreemap-styles-digest into main
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 12s
Reviewed-on: #23
2026-11-13 09:44:51 +01:00
randy 8a2734d59e Update https://github.com/hyperknot/openfreemap-styles digest to 006ea57
CI / check (push) Successful in 20s
CI / deploy (push) Skipped
CI / check (pull_request) Successful in 17s
CI / deploy (pull_request) Skipped
2026-11-13 08:42:01 +00:00
randy 3834f4fe1e Renovate: allow bin/assets-sync.mjs as a postUpgradeTask, re-pin Liberty one commit back to retest
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 13s
2026-11-13 09:40:23 +01:00
randy f0f463d9b2 Update https://github.com/hyperknot/openfreemap-styles digest to 006ea57
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 22s
2026-11-13 09:36:50 +01:00
randy 7cef82116f Update dependency puma to v8.0.3
CI / check (pull_request) Successful in 26s
CI / deploy (pull_request) Skipped
CI / check (push) Successful in 27s
CI / deploy (push) Successful in 53s
2026-11-13 08:33:58 +00:00
randy 5e1d1988ab Renovate: track Noto Sans glyphs and the Liberty style/sprite via git commit pins
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 12s
2026-11-13 09:32:33 +01:00
randy ad8b72c3d3 Library phase 1: SQLite item library with folders, migration of old files as layers, import split into items 2026-11-13 09:03:22 +01:00
randy 4216211a20 Topbar: fit phone width by hiding wordmark, username and sunset countdown
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 13s
2026-11-12 16:14:32 +01:00
randy 25b87b94fe 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.
2026-11-12 13:42:04 +01:00
randy e2461f794c Places index: also drop localities, isolated dwellings and kindless objects
Measured on France (5.3M rows): place=locality ~10% (mostly cadastral
names of fields and woods), isolated_dwelling ~5%, objects with a name
but none of the recognized kind keys ~4% (bus route relations etc.).
Schema version 3, so rake places:index rebuilds existing indexes.
2026-11-12 13:42:04 +01:00
randy f3dd37dd4e Places index: drop buildings and land use, search without apostrophes and by brand
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 12s
Named buildings and land-use areas are skipped unless they're also a
shop/amenity/etc. A second, unshown FTS column holds the name without
apostrophes and the brand tag, so "mcdonalds" finds McDonald's and
"lidl" finds "Lidl Petržalka". The index records a schema version;
rake places:index rebuilds older ones by itself.
2026-11-12 12:58:31 +01:00
randy 8e4c466829 chore(deps): update dependency maplibre-gl to v6.18.0
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 12s
2026-11-12 12:54:49 +01:00
randy 54e811ef95 chore(deps): update dependency suncalc to v2.1.4
CI / check (pull_request) Successful in 17s
CI / deploy (pull_request) Skipped
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 13s
2026-11-12 11:52:17 +00:00
randy e63f6f7ce7 Enable YJIT in the container
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 1m2s
The official Ruby image ships YJIT but leaves it off. Set via ENV so the
puma server and rake jobs run through podman compose exec both get it.
2026-11-12 12:27:42 +01:00
randy 3f973a26d7 Search the offline map and Wikipedia, nearest results first
CI / check (push) Successful in 26s
CI / deploy (push) Successful in 33s
Every named OSM object in each country's Geofabrik extract goes into a
SQLite FTS5 index (data/places/<CODE>.sqlite, lib/maptool/places.rb),
built as the last offline-build step or on its own with
rake places:index. Kiwix full-text search is another source; clicking a
hit opens the article. Results from every source are sorted by distance
from the map center (settlements weighted closer) and show it; each
source is queried separately so a slow one doesn't hold up the list.
2026-11-12 12:13:13 +01:00
randy ba9c40ac3d Search: highlight the found spot, open a waypoint's popup, full-height list
A point result (typed coordinates, a geocoded place, a waypoint) leaves
a pulsing marker on the map until the next jump or a click on it. A
result from a layer opens that point's popup as if clicked on the map.
The panel grows to the window height so long result lists fit.
2026-11-12 12:13:13 +01:00
randy 81e688be9b Record per-step timings of offline/terrain builds
CI / check (push) Successful in 38s
CI / deploy (push) Successful in 12s
Live in build-status while running; every finished build (done or
error) is appended to data/build_history.jsonl with its step timings,
regions, thread count and, for offline builds, the tail of Planetiler's
output (its own per-phase summary). GET /api/build-history, shown in the
debug panel, gives a baseline to compare later builds against.
2026-11-12 11:54:49 +01:00
randy 7429e4ae33 Zip upload: reject archives over 500 MB uncompressed
Sums the entries' declared sizes before extracting anything; rubyzip's
own validate_entry_sizes (on by default) catches an entry that inflates
past what it declared.
2026-11-12 11:54:49 +01:00
randy ca2e67599b Sun & moon chart: click the topbar's sun readout
A horizon-style chart drawn from the vendored suncalc, so fully offline:
real sun and moon altitude over the 24 h around solar noon, sunrise/
sunset lines, dawn/noon/dusk on the time axis, the moon in its current
phase, plus moonrise/set, phase and current sun/moon position below.
Polar day/night now shows as a label instead of hiding the readout.
2026-11-12 11:54:49 +01:00
randy cf483d183c Add a logged-in-only status/debug panel at the bottom of the sidebar
Dumps every read-only status endpoint (health, offline/terrain build
status, regions, caches, hiking trails, kiwix, plugins, GNSS, LiveTrack)
as JSON, refreshed every 5s while open so a running build's progress
shows live.
2026-11-12 11:37:42 +01:00
randy 0051a0337c Search: look through all saved layers and offline hiking trails
GET /api/search (lib/maptool/search.rb) matches feature name and
description, case- and diacritics-insensitive, across every file in
Tracks & Points (shown or not) and every offline hiking-trails country.
Parsed features are cached in memory per file by mtime.

The search box now queries local sources and Nominatim side by side,
labels each result with where it was found, lets you untick sources,
and switches a result's layer on if it was off before zooming to it.
2026-11-12 11:37:42 +01:00
randy 2611713489 chore(deps): update dependency maplibre-gl to v6.17.0
CI / check (pull_request) Successful in 21s
CI / deploy (pull_request) Skipped
CI / check (push) Successful in 16s
CI / deploy (push) Successful in 12s
2026-11-09 10:41:41 +00:00
randy c9534db3af chore(deps): update dependency minitest to v6.1.0
CI / check (push) Successful in 23s
CI / deploy (push) Successful in 32s
2026-11-09 11:40:11 +01:00
randy a1691f685b chore(deps): update dependency suncalc to v2.1.3
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 13s
2026-11-09 11:39:54 +01:00
randy 5bd86a5325 chore(deps): update dependency maplibre-gl-lanes to v1.4.1
CI / check (pull_request) Successful in 33s
CI / deploy (pull_request) Skipped
CI / check (push) Successful in 35s
CI / deploy (push) Successful in 13s
2026-11-09 05:01:39 +00:00
randy 016fd8b6cb chore(deps): update dependency rubyzip to v3
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 32s
2026-11-03 18:16:07 +01:00
randy 1e6c650024 Renovate: run in the official image instead of npm install
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 13s
No per-run npm install (and its deprecation/allow-scripts warnings),
Node comes with the image so the engines.node mismatch can't recur,
and containerbase installs Ruby/bundler on demand for Gemfile.lock.
2026-11-03 18:12:53 +01:00
randy f313825da7 chore(deps): update dependency maplibre-gl-lanes to v1.4.0
CI / check (pull_request) Successful in 20s
CI / deploy (pull_request) Skipped
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 13s
2026-11-03 17:08:44 +00:00
randy 240f7931c1 Renovate: pin its job to Node 24 and renovate@44
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 13s
npm picks a Renovate version whose engines.node matches the runtime, so
the Node 26 bump silently downgraded Renovate to 37.x, which rejected
renovate.json (managerFilePatterns) and did nothing. Node majors for
this job are now excluded from Renovate's own bumps.
2026-11-03 18:07:48 +01:00
randy 8c6c47b6fd chore(deps): update dependency oauth2 to v2.1.0
CI / check (push) Successful in 21s
CI / deploy (push) Successful in 32s
2026-11-03 18:02:48 +01:00
randy 8b8ac386e9 chore(deps): update dependency ruby to v4.0.9
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 13s
2026-11-03 18:02:37 +01:00
randy 7e420728a2 chore(deps): update dependency node to v26
CI / check (push) Successful in 21s
CI / deploy (push) Successful in 13s
2026-11-03 18:02:09 +01:00
randy 66163666e9 chore(deps): update actions/setup-node action to v7
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 13s
2026-11-03 18:01:59 +01:00
randy e8e0208237 chore(deps): update actions/checkout action to v7
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 12s
2026-11-03 18:01:40 +01:00
randy 21548d0f55 chore(deps): update dependency suncalc to v2.1.1
CI / check (push) Successful in 16s
CI / deploy (push) Successful in 13s
2026-11-03 18:01:28 +01:00
randy ac76f6d176 chore(deps): update dependency maplibre-gl to v6.16.0
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 13s
2026-11-03 18:00:46 +01:00
randy 4a095f28db chore(deps): update dependency flag-icons to v7.6.0
CI / check (push) Successful in 16s
CI / deploy (push) Successful in 13s
2026-11-03 18:00:30 +01:00
randy 0870051893 Renovate: set up Ruby so it can run bundler lock
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 12s
Gemfile.lock updates failed with 'spawn bundler ENOENT', the job only
had Node, leaving the oauth2/rubyzip PRs without a lockfile change.
2026-11-03 17:50:04 +01:00
randy 50ecc00aef Renovate: read GH_COM_TOKEN secret, drop hourly PR limit
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 12s
Gitea reserves the GITHUB_ prefix for secret names, so
secrets.GITHUB_COM_TOKEN was always empty and github-releases/actions
lookups were skipped. prHourlyLimit 0: weekly runs, the default 2/hour
just leaves updates queued for weeks.
2026-11-03 17:43:34 +01:00
randy 33600f37a3 chore(deps): update dependency maplibre-contour to v0.1.1
CI / check (push) Successful in 21s
CI / deploy (push) Successful in 12s
2026-11-03 17:32:08 +01:00
randy 2e8a92b451 chore(deps): update dependency ruby to v4.0.9
CI / check (pull_request) Successful in 16s
CI / deploy (pull_request) Skipped
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 1m2s
2026-11-03 16:23:23 +00:00
randy f62987b1de Add Renovate config, track vendored JS libs via package.json
CI / check (push) Successful in 36s
CI / deploy (push) Successful in 13s
The Renovate workflow had no renovate.json, so with onboarding off it
skipped the repo entirely. Now config:recommended plus a regex manager
for the Dockerfile's PMTILES_VERSION/PLANETILER_VERSION pins.

public/vendor/'s npm-published libraries (maplibre-gl, pmtiles,
maplibre-contour, maplibre-gl-lanes, flag-icons, suncalc) are pinned in
package.json; bin/vendor-sync.mjs copies them out of node_modules, and
runs as a Renovate postUpgradeTask so bump PRs carry the new files.
Re-syncing the current versions reproduces the vendored files exactly,
except suncalc's hand-added header, moved into third-party-notices.
2026-11-03 17:15:28 +01:00
randy 157759d44b compose: pin kiwix-serve to 3.8.2 instead of latest
Same image digest as latest today, just lets Renovate track it.
2026-11-03 17:15:28 +01:00
randy 2d6cdeaaf4 compose: shared :z on data mounts so kiwix can read its ZIM
CI / check (push) Successful in 40s
CI / deploy (push) Successful in 12s
maptool's private :Z on ./data recursively relabeled
data/kiwix/wikipedia.zim to maptool's own MCS label, locking the kiwix
container out of it ("Unable to add the ZIM file"), and kiwix's :Z
would do the same back. Both mount the same file, so the label has to
be shared.
2026-10-24 00:54:15 +02:00
randy efddc55ad0 refactor: enhance Overpass API handling with multiple endpoints and improved error reporting
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 12s
2026-10-09 22:07:45 +02:00
randy 33be95ef59 Send a User-Agent to Overpass, overpass-api.de 406s Ruby's default
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 13s
The Camper POIs plugin died with "plugin exited with status 1": Net::HTTP's
bare "Ruby" User-Agent now gets a 406 Not Acceptable from overpass-api.de,
any identifying one goes through.
2026-10-09 21:51:24 +02:00