baldav/frontend/js
4aiman 3aa3ffdac1 BRouter Stage 2 (primitive): download .rd5 segments inside the app
Kotlin owns the download so tiles land in the exact dir the engine reads
(files/brouter/segments4) — no Rust path guessing. processBrouterCommand now
dispatches: dltile:<tile> streams brouter.de/brouter/segments4/<tile>.rd5 to a
.tmp then renames, writing progress/final state to brouter_dl_<tile>.json;
listtiles writes brouter_tiles.json. Tile names are sanitized ([A-Za-z0-9_]).

Rust relays: brouter_download_tile / brouter_download_status / brouter_list_tiles.
JS: BRouter.downloadTile/downloadStatus/listTiles/downloadTileAndWait.

Compiles into the apk. Not yet exercised on device (phone offline) — the tile
selection UI and the end-to-end download->offline-route test are the remaining
Stage 2 work. IMPLEMENTATION_PLAN updated.
2026-09-09 01:11:20 +03:00
..
bmr.js Sensors, walk limits, GPS fixes, water UI, manual routes, Gridnev products, OTA router 2026-06-18 22:54:45 +03:00
chzn.js ЧЗ scanner: switch decoder to zxing-wasm (ZXing-C++) for reliable DataMatrix 2026-08-27 09:42:05 +03:00
db.js Wind: "headwind in the face" label button on the recording screen 2026-09-07 17:10:16 +03:00
gps.js Wind: "headwind in the face" label button on the recording screen 2026-09-07 17:10:16 +03:00
main.js Wind: "headwind in the face" label button on the recording screen 2026-09-07 17:10:16 +03:00
router.js BRouter Stage 2 (primitive): download .rd5 segments inside the app 2026-09-09 01:11:20 +03:00
tilecache.js Tile import, road map, orientation lock, CSP fix, tile error handling 2026-06-26 16:41:14 +03:00