#!/bin/bash cd "$(dirname "$0")/.." # Create a test GPX file with a simple route cat > test_route.gpx << EOF Test Route 10 20 30 40 50 60 70 80 90 100 EOF # Run the bicycle planner with debug output to see town avoidance in action echo "Testing town avoidance feature with performance improvements" echo "Running first time (no cache)..." time go run main.go --input="test_route.gpx" --days=5 --elevFactor=4 --forestRadius=5 --resupplyRadius=5000 echo "" echo "Running second time (with cache)..." time go run main.go --input="test_route.gpx" --days=5 --elevFactor=4 --forestRadius=5 --resupplyRadius=5000 # Clean up rm test_route.gpx