How namra9794-eng/ner-smartroute works
This is a Django REST backend for regional logistics and accessibility monitoring. Field reports, road and vehicle updates, and shipment operations feed a shared API; risk scoring, route optimization, alerts, and dashboard views provide operational results. The README documents these capabilities and alert automation, while sampled code confirms route graph reads and alert creation. Many views and integrations are not sampled, so uncertain call-level wiring is omitted; dashboard and weather connections are shown only where documented.
Main entry points: urls.py API router · dashboard/views.py Operational dashboards · services.py Alert generation · roads/views.py Road API
Components 25
API and identity
- API router
config/urls.py - User API
users/views.py - User records
users/models.py
Road operations
- Road API
roads/views.py - Road and district data
roads/models.py - Incident API
incidents/views.py - Incident reports
incidents/models.py - Vehicle API
vehicles/views.py - Vehicle tracking
vehicles/models.py
Risk and routing
- Risk prediction API
ml_engine/views.py - Risk scorer
ml_engine/risk_model.py - Route API
routes/views.py - Route graph optimizer
routes/graph_engine.py - Saved routes
routes/models.py
Logistics and alerts
- Shipment API
logistics/views.py - Shipments
logistics/models.py - Alert API
alerts/views.py - Alert generation
alerts/services.py - Alerts and translations
alerts/models.py
Weather and dashboards
- Weather API
weather/views.py - Weather records
weather/models.py - Operational dashboards
dashboard/views.py
Other components
- Web and mobile clients
- Field officials
- GPS simulator
Connections 31
- Web and mobile clients → API router: send requests
- Field officials → API router: submit reports
- GPS simulator → API router: send pings
- API router → User API: dispatches
- API router → Road API: dispatches
- API router → Incident API: dispatches
- API router → Vehicle API: dispatches
- API router → Risk prediction API: dispatches
- API router → Route API: dispatches
- API router → Shipment API: dispatches
- API router → Alert API: dispatches
- API router → Weather API: dispatches
- API router → Operational dashboards: dispatches
- User API → User records: reads and writes
- Road API → Road and district data: reads and writes
- Incident API → Incident reports: reads and writes
- Incident API → Alert generation: requests alert
- Road API → Alert generation: requests alert
- Vehicle API → Alert generation: requests alert
- Alert generation → Alerts and translations: creates alerts
- Vehicle API → Vehicle tracking: reads and writes
- Risk prediction API → Risk scorer: scores risk
- Route API → Route graph optimizer: optimizes routes
- Route graph optimizer → Road and district data: loads road graph
- Route API → Saved routes: reads and writes
- Shipment API → Shipments: reads and writes
- Alert API → Alerts and translations: reads and writes
- Weather API → Weather records: reads and writes
- Operational dashboards → Road and district data: reports connectivity
- Operational dashboards → Vehicle tracking: reports movement
- Operational dashboards → Saved routes: reports emergency routes