akanksha-mandala/roadsos

GitHub: akanksha-mandala/roadsos

Stars: 0 | Forks: 0

## 🌐 Live Demo ## 🎯 Problem * Difficulty finding nearby emergency services quickly * Delays due to poor network connectivity * Lack of a unified platform combining routing, services, and offline support ## 💡 Solution * 📍 Real-time location detection * 🚑 Nearby emergency services (OpenStreetMap) * 🛣 Route computation with risk awareness * ⚠️ Road Risk Scoring (based on accidents, time, road type) * 📡 Offline Emergency Kit (works without internet) * 🧾 Incident reporting with transparency ## 🔥 Key Features ### 🚨 Emergency SOS * One-tap emergency access * Location-based service suggestions * Always-available emergency numbers ### 🧭 Smart Routing * Real-time route computation (OSRM) * Road-type detection (Urban / Highway / Rural) * Live route tracking ### ⚠️ Road Risk Scoring * Based on: * Accident density * Time of day * Road type * Output: 🟢 Low · 🟡 Medium · 🔴 High risk ### 📡 Offline Emergency Kit * Works without internet * One-tap calling (112, 108, 100, 101, etc.) * Cached nearest hospital ### 🔍 Service Discovery * Finds hospitals, police, ambulance, towing, etc. * Uses OpenStreetMap with offline fallback ### 🧾 Incident Reporting * Report accidents, hazards, roadblocks * View reports on map * Community-driven safety data ## 🧠 Tech Stack **Frontend:** HTML, CSS, JavaScript, Leaflet.js **Backend:** Python, Flask (modular architecture) **APIs:** OpenStreetMap (Overpass), OSRM **Deployment:** Render + Gunicorn ## 🏗 Project Structure ## 🚀 Run Locally Open: http://localhost:5000 ## 📖 API Endpoints | Method | Endpoint | Description | | ------ | --------------------- | -------------------- | | GET | /api/emergency/nearby | Find nearby services | | POST | /api/route/compute | Compute route | | POST | /api/reports/submit | Submit report | | GET | /api/reports/all | Fetch reports | ## 🌍 Impact * Faster emergency response * Works in low-network areas * Improves road safety awareness * Enables community-driven data ## 🔮 Future Scope * Real-time traffic integration * ML-based accident prediction * Government API integration * Voice-based SOS ## 👩‍💻 Author **Akanksha Mandala** 🔗 https://github.com/akanksha-mandala ## 🏁 Conclusion
标签:自定义脚本