How dheerparekh86-droid/sih2026 works
This is a Flask hackathon prototype for monitoring NER transport disruptions and coordinating routes, vehicles, incidents, and alerts. The main workflow is a user viewing the dashboard, requesting a risk-aware route, or submitting an incident; the server responds from synthetic in-memory data. Tracking, alert generation, and English/Hindi interface strings are also implemented. The README describes broader goals such as GIS, prediction, photo uploads, and offline sync, but the sampled runtime does not establish those capabilities; template behavior beyond its filenames is not inferred.
Main entry points: app.py Flask routes · base.html Shared page shell · mock_data.py Road network · dashboard.html Dashboard page
Components 18
Web interface
- Flask routes
SIH2026/ner-logistics/app.py - Dashboard page
SIH2026/ner-logistics/templates/dashboard.html - Route planner page
SIH2026/ner-logistics/templates/route_planner.html - Incident page
SIH2026/ner-logistics/templates/incidents.html - Tracking page
SIH2026/ner-logistics/templates/tracking.html - Shared page shell
SIH2026/ner-logistics/templates/base.html - Language switcher
SIH2026/ner-logistics/static/js/app.js
Logistics operations
- Risk-aware routing
SIH2026/ner-logistics/app.py - Shortest-path baseline
SIH2026/ner-logistics/app.py - Alert generation
SIH2026/ner-logistics/app.py - Vehicle tracking API
SIH2026/ner-logistics/app.py - Incident intake
SIH2026/ner-logistics/app.py
Mock domain state
- Road network
SIH2026/ner-logistics/mock_data.py - District records
SIH2026/ner-logistics/mock_data.py - Simulated vehicles
SIH2026/ner-logistics/mock_data.py - Incident records
SIH2026/ner-logistics/mock_data.py
Localization
- Language strings
SIH2026/ner-logistics/mock_data.py
Other components
- Platform user
Connections 28
- Platform user → Flask routes: requests pages
- Flask routes → Dashboard page: renders
- Flask routes → Route planner page: renders
- Flask routes → Incident page: renders
- Flask routes → Tracking page: renders
- Dashboard page → Shared page shell: extends
- Route planner page → Shared page shell: extends
- Incident page → Shared page shell: extends
- Tracking page → Shared page shell: extends
- Flask routes → Language strings: reads
- Flask routes → District records: reads
- Flask routes → Alert generation: calls
- Alert generation → Road network: reads
- Alert generation → Simulated vehicles: reads
- Alert generation → Incident records: reads
- Flask routes → Risk-aware routing: calls
- Flask routes → Shortest-path baseline: calls
- Risk-aware routing → Road network: reads
- Shortest-path baseline → Road network: reads
- Flask routes → Incident intake: dispatches
- Incident intake → District records: reads coordinates
- Incident intake → Incident records: adds report
- Flask routes → Vehicle tracking API: dispatches
- Vehicle tracking API → Simulated vehicles: updates positions
- Vehicle tracking API → District records: reads coordinates
- Vehicle tracking API → Alert generation: calls
- Language switcher → Flask routes: sets language
- Platform user → Language switcher: selects language