mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-08-26 17:31:37 +00:00
Vehicle skips the off-network gate (PR #8), so Auto would pick vehicle for any Valhalla-snappable point. Add a 3-tier eligibility check before Auto probes vehicle: <=5m -> on the road, vehicle always ok 5m..100m -> vehicle ok only if snapped road is paved AND terrain is flat >100m -> vehicle not ok Rationale: aggressive 100m snapping in wilderness can route from the wrong start point; only paved+flat (urban/suburban) earns the grace zone. - _locate_on_network now returns road_class. - _is_terrain_flat samples DEM at center + 4 cardinals (FLAT_SAMPLE_RADIUS_M), flat if max-min < FLAT_TERRAIN_DELTA_M; DEM errors -> False (conservative). - _vehicle_eligible implements the 3 tiers; _route_auto drops vehicle from the probe order unless BOTH endpoints are eligible. - 5 new tests cover the tiers; existing probe-iteration tests stub _vehicle_eligible. 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 | ||