This project is an interactive web application designed to assist users in locating nearby emergency services and identifying flood-prone areas. It uses geolocation to detect the user's current location and displays relevant information on a map.
- Real-time Location Detection: Automatically detects the user's location or uses a default location if geolocation is unavailable.
- Interactive Map: Displays emergency services and flood zones on a map.
- Service Categories: Includes hospitals, rescue services, shelters, and more.
- Flood Zones Visualization: Highlights low, medium, and high-risk flood areas.
- Filtering Options: Allows users to filter displayed data by service type or flood zones.
- Responsive Design: Optimized for mobile and desktop use.
- Frontend: HTML, CSS, JavaScript
- Libraries:
- Leaflet.js for map rendering and interactivity
- Overpass API for fetching nearby services
- FastAPI Backend
- APIs: Geolocation API for detecting user location
- PostGIS for flood analysis
- Redis for caching
Predefined polygons representing flood zones with risk levels.
const floodZones = [
{
name: "Hiranandani Gardens Basin",
risk: "LOW",
coordinates: [[lat1, lon1], [lat2, lon2], ...]
},
...
];
Markers representing emergency services fetched dynamically from the Overpass API.
let serviceMarkers = [
{
marker: L.marker(...),
type: "medical", // "rescue", "shelter", etc.
details: "Service details",
source: "OpenGovernmentData"
},
...
];
- Clone the repository to your local machine.
git clone https://github.com/Rupesh4604/Emergency-Services-Locator.git
- Navigate to the project directory.
cd Emergency-Services-Locator
- Open the
index.html
file in a web browser.
- Open the application in a browser.
- Allow location access when prompted.
- Use the navigation buttons to filter services or view flood zones.
- Click on markers for more details about each service or flood zone.
- index.html: Main HTML file.
- styles.css: Contains the application's styling.
- script.js: Core JavaScript logic for map interaction and data fetching.
-
iOS/Android App Download Link: https://median.co/share/erayep#apk (Available for both mobile and tablet versions)
-
Live Website Link: https://emergency-services-locator.netlify.app/
-
Use your smartphone camera to open QR code link.
iOS Preview | Tablet Preview |
---|---|
![]() |
![]() |
- Integration with real-time flood alerts.
- Support for additional emergency services.
- Offline functionality for disaster scenarios.
- Leaflet.js: Leaflet Documentation
- Overpass API: Overpass API Documentation
This project is licensed under the MIT License.