PH6.1 — OSRM travel provider with cache, degraded health and W_TRAVEL_FALLBACK #42

Open
opened 2026-09-11 09:02:18 +00:00 by bart · 0 comments
Collaborator

Parent

Row PH6.1 in docs/12-implementation-plan.md (branch, owned paths and doc section are defined there).

What to build

The engine uses OSRM for travel times when available, caches matrices, and falls back to haversine with a validator warning and a degraded health status when OSRM is down.

Acceptance criteria

  • OSRM TravelMatrixProvider passes the same contract tests as haversine
  • Cache hit avoids a second OSRM call for the same matrix
  • OSRM down → /healthz degraded, plan still produced, W_TRAVEL_FALLBACK finding

Blocked by

  • #18 — Planning engine daily mode: opportunities, travel provider, OR-Tools VRP model, result mapping
  • #3 — Compose base: db, LDAP, Keycloak realm, nginx, OSRM
## Parent Row **PH6.1** in `docs/12-implementation-plan.md` (branch, owned paths and doc section are defined there). ## What to build The engine uses OSRM for travel times when available, caches matrices, and falls back to haversine with a validator warning and a degraded health status when OSRM is down. ## Acceptance criteria - [ ] OSRM `TravelMatrixProvider` passes the same contract tests as haversine - [ ] Cache hit avoids a second OSRM call for the same matrix - [ ] OSRM down → `/healthz` degraded, plan still produced, `W_TRAVEL_FALLBACK` finding ## Blocked by - #18 — Planning engine daily mode: opportunities, travel provider, OR-Tools VRP model, result mapping - #3 — Compose base: db, LDAP, Keycloak realm, nginx, OSRM
Sign in to join this conversation.
No labels
ready-for-agent
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
patrick/Polaris#42
No description provided.