feat(GRO-2157): navigation export endpoints (Phase 2.3) #190

Merged
Flea Flicker merged 1 commits from flea/gro-2157-navigation-export into dev 2026-06-09 00:16:42 +00:00

1 Commits

Author SHA1 Message Date
Flea Flicker 4138a73ee3 feat(GRO-2157): navigation export endpoints (Phase 2.3)
CI / Test (pull_request) Successful in 28s
CI / Lint & Typecheck (pull_request) Successful in 31s
CI / Build & Push Docker Images (pull_request) Successful in 1m13s
Add GET /api/routes/:routeId/export/google-maps and
GET /api/routes/:routeId/export/apple-maps. Builds native-navigation
deep-link URLs from the route's stops in optimized order (origin = first
stop, destination = last stop, the rest as ordered intermediate
waypoints). Validates per-platform waypoint limits (Google Maps ≤ 9,
Apple Maps ≤ 15) and returns { platform, url, stopCount, waypointCount }.
Auth: manager (any route) or groomer (own route only) via existing
/routes/* requireRole guard + resolveTargetStaffId.

- New pure-function service src/services/navigationExport.ts + 14 unit tests
- Updated UAT_PLAYBOOK.md §4.18 (navigation export test cases)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-09 00:13:58 +00:00