navi/backend/services/navi_offroute
Matt b1c2058586 fix(offroute): use classification.use for track/path; add service_other to paved
Align spatial eligibility with Valhalla's actual /locate vocabulary:
- road grade lives in classification.classification (8-value enum incl service_other,
  which was missing from PAVED_HIGHWAY_CLASSES); track/path/footway are NOT grades,
  they live in classification.use.
- _locate_on_network now also returns use (defensive .get chain; None in fallback).
- Renamed TRACK/PATH_HIGHWAY_CLASSES -> TRACK_USE_VALUES/PATH_USE_VALUES; atv/mtb now
  match on use, vehicle still on the paved grade.
- 4 tests: service_other->vehicle, use=track->atv/mtb/foot, use=footway->mtb/foot,
  none->foot.

Live-verified: the Boise end point (43.626,-116.215, service_other) now yields
[atv,mtb,vehicle,foot] instead of [foot]; Auto intersection picks vehicle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 03:19:12 +00:00
..
tests fix(offroute): use classification.use for track/path; add service_other to paved 2026-05-25 03:19:12 +00:00
__init__.py Add navi-offroute service (extraction #8 — final) (#10) 2026-05-22 23:30:43 -06:00
admin.py Add navi-offroute service (extraction #8 — final) (#10) 2026-05-22 23:30:43 -06:00
app.py Add navi-offroute service (extraction #8 — final) (#10) 2026-05-22 23:30:43 -06:00
barriers.py Add navi-offroute service (extraction #8 — final) (#10) 2026-05-22 23:30:43 -06:00
cost.py Add navi-offroute service (extraction #8 — final) (#10) 2026-05-22 23:30:43 -06:00
friction.py Add navi-offroute service (extraction #8 — final) (#10) 2026-05-22 23:30:43 -06:00
mvum.py Add navi-offroute service (extraction #8 — final) (#10) 2026-05-22 23:30:43 -06:00
offroute_route.py feat(offroute): Auto eligible-mode-set with category hints + parallel spatial fallback 2026-05-25 02:15:48 +00:00
router.py fix(offroute): use classification.use for track/path; add service_other to paved 2026-05-25 03:19:12 +00:00
trails.py Add navi-offroute service (extraction #8 — final) (#10) 2026-05-22 23:30:43 -06:00