Effortless Route Planning for Drivers
A simple web application that calculates driving routes, schedules mandatory stops (fuel, breaks, rest), and displays everything on an interactive map to help drivers stay compliant and efficient.
- Route Calculation: Uses OSRM to compute optimal paths between waypoints.
- Automated Stops: Schedules fuel stops, 30‑min breaks, and off‑duty/rest periods based on driving rules.
- Interactive Map: Visualize the route and events with Google Maps.
- Toggle Events: Show/hide different event types for clarity.
-
Navigate to the
backend/
directory. -
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # Windows: venv\\Scripts\\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run migrations and start the server:
python manage.py migrate python manage.py runserver
-
Navigate to the
frontend/
directory. -
Install npm packages:
npm install
-
Create a
.env.local
file with:REACT_APP_BACKEND_URL=http://localhost:8000 REACT_APP_GOOGLE_MAPS_API_KEY=your_google_maps_key
-
Start the development server:
npm start
Open http://localhost:3000 to view the app.