About
## Challenges we ran into
## 🧗 Challenges We Ran Into
Building a terrain-aware risk engine within a 24-hour hackathon presented several unique technical and data-related hurdles:
* **Processing Elevation Data on the Fly:** Real Digital Elevation Models (DEM) from NASA SRTM are massive raster files. Parsing these in real-time to calculate slopes and drainage basins for every request was too slow for a web dashboard. * **Solution:** We built an offline Python pipeline to pre-compute slope values and drainage factors, serving them as lightweight JSON lookups to keep our risk engine's response time under 500ms.
* **Mapping Massive Geo-Datasets:**
Rendering the full India state and district boundary GeoJSON files originally took over 5MB, causing unacceptable initial load times for the National Heatmap. * **Solution:** We aggressively simplified the geometries and converted them to TopoJSON, bringing the payload down to under 500KB without sacrificing visual fidelity.
* **API Rate Limiting & Demo Reliability:** Relying on live OpenWeather API endpoints for constant rainfall polling hit free-tier rate limits during testing, and we couldn't risk a network failure during the live demo. * **Solution:** We engineered a robust `USE_MOCK_DATA` fallback flag. The app bundles a seeded, offline dataset that simulates extreme weather scenarios perfectly for judging, while preserving the architecture to plug back into live APIs post-hackathon.
* **Hydrological Complexity:**
True flood modelling requires multi-year data on soil saturation, river discharge rates, and land cover—data we couldn't accurately integrate in 24 hours. * **Solution:** Instead of pretending to have a perfect meteorological model, we focused our core value proposition on the **decision support layer**. We created a proxy formula calibrated against historical data (like Kedarnath) to generate realistic risk tiers, allowing us to successfully build the evacuation routing and impact quantification features.
## The problem it solves
### 🚨 The Core Problem: The Actionability Gap in Disaster Response
Currently, disaster management authorities and district officers rely on standard meteorological forecasts. These systems are excellent at predicting *weather*, but they fail at predicting **hyper-local ground realities**.
When a weather alert simply states, *"Heavy to extreme rainfall expected in District X over the next 24 hours,"* it creates a severe **decision-making gap** for first responders.
Specifically, this traditional approach suffers from three critical failures:
- **Lack of Hyper-Local Precision:** Rain does not affect a district uniformly. Water behaves according to topography. Without factoring in local elevation, slope degrees, and drainage basin capacity, authorities cannot know *which specific villages* will go underwater and which will remain safe.
- **Blind Evacuation Routing:** When a flood is imminent, standard protocol often involves moving people to the "nearest" shelter or higher ground. However, relying on aerial proximity (a straight line on a map) is dangerous. A shelter that is physically close might require crossing a flood zone, or the road to reach it might be downhill.
- **Resource Misallocation:** Without immediate, quantifiable impact data—knowing exactly how many people, hospitals, and schools are located in the high-risk zones—NDRF commanders are forced to deploy rescue resources blindly rather than pre-positioning them where the human cost will be highest.
**The Result:** Reactive rather than proactive disaster management. Evacuation orders are issued too late, people are routed through dangerous paths, and lives are lost simply because the data wasn't translated into an actionable directive.
### 💡 How FlashFlood Matrix Solves This
FlashFlood Matrix bridges the gap between raw meteorological data and on-the-ground execution. It doesn't just tell authorities that water is coming; it provides a **terrain-aware, time-boxed evacuation matrix** that tells them exactly *who* needs to move, *when* they need to move, and the *exact safe route* they need to take to get there.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.









