A web app that generates optimal running and cycling routes using local search algorithms! Project for CS 4100 Foundations of Artificial Intelligence
cd backend
python -m venv venv
# Windows
venv\Scripts\activate
# Mac/Linux
source venv/bin/activate
pip install -r requirements.txtcd backend
python app.pyFirst run will download Boston network, which may take a little bit because there are over 50,000 nodes!
Open new terminal:
cd frontend
python -m http.server 8000- Click on map to set starting point
- Enter desired distance (in km)
- Select elevation preference
- Click "Generate Route"
- Route appears on map!
path/
├── backend/ # Python Flask API
│ ├── algorithms/ # Simulated annealing
│ ├── services/ # Network & stats
│ └── app.py # Main API
├── frontend/ # Web interface
└── README.md