Live Demo:
🔗 https://maynkxx.github.io/thirdeye-safety-map/
ThirdEye is a real-time disaster monitoring web application that visualizes global earthquake activity, detects nearby risk zones, and helps users navigate to the nearest hospital during emergencies.
It combines live disaster data, geolocation, and map-based visualization to improve situational awareness and emergency response.
- Live global earthquake tracking
- Detects your current location
- Nearby danger detection (100 km safety radius)
- Finds nearest hospitals using OpenStreetMap
- Auto-routing to closest hospital
- Real-time dashboard (total quakes, strongest quake, risk level)
- Earthquake safety Do's & Don'ts panel
- Auto-refresh disaster data every 60 seconds
Frontend
- HTML, CSS, JavaScript
- Leaflet.js
- OpenStreetMap
- Overpass API
- OSRM Routing API
Backend
- FastAPI (Python)
- Live Earthquake Data API
- Render (Deployment)
Hosting
- Frontend → GitHub Pages
- Backend → Render
- Backend fetches real-time earthquake data.
- Frontend displays disasters on an interactive map.
- User location is detected using browser geolocation.
- Nearby danger is calculated using distance formula.
- Overpass API finds nearby hospitals.
- OSRM generates route to the nearest hospital.
- Dashboard updates every minute automatically.
git clone https://github.com/maynkxx/thirdeye-safety-map.git
cd thirdeye-safety-map
python -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windows
pip install -r requirements.txt
uvicorn backend.main:app --reload