diff --git a/backend/services/navi_offroute/router.py b/backend/services/navi_offroute/router.py index 40f444b..40aa799 100755 --- a/backend/services/navi_offroute/router.py +++ b/backend/services/navi_offroute/router.py @@ -56,8 +56,10 @@ EXPANDED_SEARCH_RADIUS_KM = 100 # Memory limit MEMORY_LIMIT_GB = 12 -# Off-network detection threshold (meters) -OFF_NETWORK_THRESHOLD_M = 10 +# Off-network detection threshold (meters). Geocoded street addresses commonly +# snap 20-50m from the road centerline, so a tight value forces normal road routes +# into wilderness pathfinding; 50m keeps on-road endpoints on-network. +OFF_NETWORK_THRESHOLD_M = 50 # Mode to Valhalla costing mapping MODE_TO_COSTING = { diff --git a/frontend/src/components/DirectionsPanel.jsx b/frontend/src/components/DirectionsPanel.jsx index 428abee..d8ac724 100644 --- a/frontend/src/components/DirectionsPanel.jsx +++ b/frontend/src/components/DirectionsPanel.jsx @@ -325,8 +325,9 @@ export default function DirectionsPanel({ onClose }) { )} - {/* Boundary mode selector (only for non-auto modes) */} - {routeMode !== "auto" && ( + {/* Boundary mode selector — hidden only for Drive (vehicle), which is pure + Valhalla road routing; Auto/Foot/MTB/ATV may traverse wilderness. */} + {routeMode !== "vehicle" && (