How jirattong/route-alert-app works
Route Alert is a Flutter UI prototype for coordinating accident reports and ambulance response. The documented user flow spans driver alerts and incident reporting, ambulance response/navigation, and agency review and assignment. The README explicitly cautions that database integration and real-time location tracking are not implemented, so the map, location, and backend-related modules should be understood as intended capabilities rather than verified live data flows. Dart implementation excerpts were not provided; relationships below are limited to README-documented behavior.
Main entry points: agency/presentation Agency screens · driver_radar/presentation Driver screens · ambulance/presentation Ambulance screens · location_service.dart Interactive map
Components 15
Role interfaces
- Driver screens
lib/features/driver_radar/presentation - Ambulance screens
lib/features/ambulance/presentation - Agency screens
lib/features/agency/presentation - Face login
lib/features/auth_face_login/presentation
Incident workflow
- Accident report
lib/features/driver_radar/presentation/sos_report_screen.dart - Incident handling
lib/core/services/incident_service.dart - Incident data
lib/core/models/incident_report.dart - Agency records
lib/core/services/agency_storage_service.dart
Ambulance response
- Ambulance records
lib/core/services/ambulance_storage_service.dart - Route planning
lib/core/services/osrm_routing_service.dart - Proximity tiers
lib/core/models/emergency_proximity_tier.dart
Shared capabilities
- Interactive map
lib/core/services/location_service.dart - Critical alerts
lib/core/services/critical_notification_service.dart
Other components
- App user
- Emergency unit
Connections 18
- App user → Driver screens: uses
README.md - App user → Ambulance screens: uses
README.md - App user → Agency screens: uses
README.md - App user → Face login: signs in
- Driver screens → Accident report: reports incident
README.md - Accident report → Incident handling: submits report
- Incident handling → Incident data: uses data
- Agency screens → Incident data: reviews incidents
README.md - Agency screens → Ambulance records: assigns response
- Agency screens → Agency records: manages records
- Ambulance screens → Route planning: views routes
README.md - Ambulance screens → Ambulance records: updates status
- Driver screens → Interactive map: views nearby events
README.md - Agency screens → Interactive map: views incident map
README.md - Ambulance screens → Interactive map: views route map
README.md - Emergency unit → Driver screens: approaches
README.md - Proximity tiers → Critical alerts: tiers alerts
- Critical alerts → Driver screens: notifies