How manaswini-m24/sureroute works
SureRoute serves passenger and driver portals for bus routes, live stop reports, and predicted arrival times. The main workflow is passenger route/stop lookup through the API and Firestore, followed by upcoming-trip ETA calculation; drivers submit status updates through the same API. The map is an additional passenger capability, and scheduled status reset is an internal maintenance behavior. ETA logic is visible in main.py, but the excerpts do not establish how the saved model artifact is loaded, so that link is left unasserted.
Main entry points: main.py Upcoming trips and ETA · routes_api.py Route and status API · script.js Portal interactions · templates Passenger and driver portals
Components 14
Web portals
- Passenger and driver portals
templates - Portal interactions
static/script.js - Stops and location map
static/map.js - Browser Firebase auth
static/firebase.js
Application services
- Web app and pages
main.py - Route and status API
backend/routes_api.py - Daily status reset
main.py
Route and live data
- Firestore access
backend/firebase_init.py - Firestore
- Route data import
routesdata.py
ETA prediction
- Upcoming trips and ETA
main.py - Trained ETA model
ai_services/ml_training/models/xgboost_eta_model.pkl
Other components
- Passengers
- Drivers
Connections 18
- Passengers → Passenger and driver portals: use
README.md - Drivers → Passenger and driver portals: use
README.md - Passenger and driver portals → Web app and pages: request pages
main.py - Web app and pages → Route and status API: mounts routes
main.py - Passenger and driver portals → Portal interactions: runs scripts
- Portal interactions → Route and status API: fetches routes and stops
static/script.js - Portal interactions → Route and status API: posts stop status
static/script.js - Portal interactions → Browser Firebase auth: uses auth
- Stops and location map → Route and status API: fetches stops
static/map.js - Route and status API → Firestore access: reads and updates
backend/routes_api.py - Firestore access → Firestore: reads route data
backend/firebase_init.py - Route data import → Firestore: writes routes
routesdata.py - Passengers → Upcoming trips and ETA: request arrivals
README.md - Web app and pages → Upcoming trips and ETA: handles trip requests
main.py - Upcoming trips and ETA → Firestore access: reads stop status
main.py - Upcoming trips and ETA → Passengers: returns predicted ETAs
README.md - Daily status reset → Firestore access: resets statuses
main.py - Upcoming trips and ETA → Trained ETA model: loads model