chainage panel update

This commit is contained in:
2026-07-08 18:02:01 +05:30
parent 8238bcf981
commit cf4ae6e146
6 changed files with 120 additions and 30 deletions

View File

@@ -212,8 +212,13 @@ Distances are WGS84-ellipsoidal (no spherical bias); calibration anchors persist
the column, so renaming the note is safe)
- `GET /api/projects/:id/chainage/calibrations` — the saved calibrations, one per road-type group
(`road_type, route_len_m, anchor_count, computed_by,
computed_at`) — every recompute persists one, so any user
sees what's already calibrated (member/admin)
computed_at, has_summary`) — every recompute persists one,
so any user sees what's already calibrated (member/admin)
- `GET /api/projects/:id/chainage/summary?road_type=` — the SAVED full result of the group's last
recompute (route, spans, per-video chainage, warnings),
null if never computed; the dashboard auto-loads it so a
newly signed-in admin sees the existing compute
(member/admin)
- `POST /api/projects/:id/chainage/recompute` `{video_ids, road_type}` — order the videos into a
route, snap the points, distribute the client-vs-GPS error
piecewise-linearly; writes `chainage_*` (client) +