No description
  • JavaScript 96.9%
  • CSS 2.9%
  • HTML 0.2%
Find a file
Matt c6acbbc88f fix(offroute): _locate_on_network sets verbose=true; reads edge_info.classification.classification
PR #10s _spatial_eligible_modes read edge.get("road_class"), but Valhalla /locate
returns no class without verbose, and even with verbose=true the class is NOT named
road_class — it lives at edge.classification.classification (lowercase, e.g.
"secondary"). Without it, every paved/track/path gate failed and Auto collapsed to
foot for untyped endpoints.

Fix: add verbose=true to the /locate body and read the class via a defensive
edge.get("edge",{}).get("classification",{}).get("classification") chain, kept under
the same road_class key so downstream eligibility is unchanged. Live-verified against
Valhalla: (43.621,-116.205) -> road_class=secondary, snap 5.0m, PAVED=True.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 02:56:17 +00:00
backend fix(offroute): _locate_on_network sets verbose=true; reads edge_info.classification.classification 2026-05-25 02:56:17 +00:00
frontend feat(offroute): Auto eligible-mode-set with category hints + parallel spatial fallback 2026-05-25 02:15:48 +00:00