mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-08-26 17:31:37 +00:00
_route_auto now probes every eligible candidate (eligibility filter unchanged) and picks the one with the smallest summary.total_effort_minutes, instead of returning the first that succeeds. Fixes the case where a wilderness start + on-road end fell through to foot and computed the entire network leg at foot pace. selected_mode = winning candidate; ties keep AUTO_MODE_PRIORITY order; all-fail still returns the last error. Wilderness leg still always foot (unchanged). Per-leg breakdown: summary now carries wilderness_minutes + network_minutes (mirrors the existing wilderness_effort_minutes/network_duration_minutes) in _build_response (A/B/C) and _route_D. Frontend DirectionsPanel shows a transition badge "Auto: Foot Xmin + <mode> Ymin" when wilderness_minutes>0 and selected_mode!=foot, else the existing "Auto chose <mode>". Tests: add min-time pick + per-leg breakdown; update probe-all assertions (no early return) and make the selected-mode test time-based. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| navi_admin | ||
| navi_config | ||
| navi_contacts | ||
| navi_geo | ||
| navi_landclass | ||
| navi_offroute | ||
| navi_places | ||
| navi_traffic | ||