I built SkyMap from a list of 37 high flood zones listed as Nairobi's flood-prone areas during the rainy season. How SkyMap Response grew from a localized Nairobi flood tracker into a global crisis-response tool where anyone can search a place like Washington, D.C., see where floodwaters threaten, and figure out where to run for help. The technology behind the scenes is Google Maps Platform and AI.
Starting Local and Realizing Floods Don't Respect Borders
When I first started building SkyMap Response, I kept things focused and grounded by loading in the Nairobi 39 Preset of flood-prone zones across the city. That starting point came straight from real life: when heavy rain hits higher ridges in Nairobi like Karen, Dagoretti, or Gigiri, stormwater doesn't stay put.
Within one to three hours, it surges downhill across impervious surfaces into lower-lying neighborhoods like Ruai, Mathare Valley, Korogocho, South C, and the Mukuru industrial belt.
Here's the catch: heavy rain doesn't care about municipal boundaries, and emergency teams rarely have time to piece together weather bulletins, elevation maps, shelter directories, and traffic reports from separate tabs while water is rising. That's why I expanded the app beyond a single preset so anyone anywhere in the world can search a city or river basin like Washington, D.C., in the search bar, see where flood risk is spiking, and immediately find where to run for help.
When you pair Google Maps Platform (GMP) innovations with AI, you stop treating maps like static road atlases and start turning them into real-time survival infrastructure. Every minute a responder saves or every second a family knows which direction leads to higher ground can be the difference between a close call and a tragedy.
SkyMap Response in action: tracing regional boundaries, directional runoff vectors, the highlighted Suggested Dispatch Zone, and Command Copilot so teams can act before floodwaters crest.
Searching Any City on Earth—and Turning Rain & Terrain Into Clear Triage.
Think about what happens the moment someone types "Washington, D.C." or any other city or river basin into SkyMap Response instead of relying only on a static list. With Places API now enhanced with the (AutocompleteSuggestion and Place.searchByText) and the Geocoding API (backed by a 30-day localStorage cache under floodwatch_geocode_cache_v1 and custom CSV uploads of zone_name and vulnerability_weight), the app can discover sub-zones inside searched bounds, trace region boundaries, and cache geocoded locations locally for field resilience.
Once those zones are on the map, raw rainfall totals still aren't enough on their own because two neighborhoods getting the exact same downpour can face very different flood outcomes. SkyMap Response pulls batch ground elevations via ElevationService.getElevationForLocations (100 points per chunk), pairs them with live Weather API calls (currentConditions:lookup, forecast/days:lookup, and publicAlerts:lookup with concurrency 6) or the Storm Sim convective simulation engine (simulationEngine.ts), and computes a transparent Flood Risk Score:
- Terrain Multiplier ($M_{{terrain}}$): Clamped between 0.75 and 1.85 based on how a zone's elevation compares to the regional mean elevation (1.0 + (Mean_Elev_m - Zone_Elev_m) / 110).
- Effective QPF: Uses currentQpfMm when greater than zero, or forecast24hQpfMm * 0.45 otherwise.
- Risk Score & Triage Tiers: Combines rain probability percentage, effective QPF, terrain vulnerability, and custom zone weight into Immediate Rescue (Score >= 1200 or HEAVY_RAIN >= 14.0 mm), Pre-Stage Team (Score 420–1199, steady-to-heavy rain 4.5–13.9 mm, 24h QPF >= 18.0 mm, or upstream runoff surges), and Normal (Score < 420), alongside Upstream Surge Domino Alerts linking higher-elevation sources to downstream basins within 16 km (with at least an 18 m elevation drop) over a 1-to-3-hour window.
In a fast-moving emergency, clarity beats clutter every single time. By highlighting the single highest-priority zone in light green as the Suggested Dispatch Zone across the map, triage list, and charts, teams know immediately where swift-water crews, sandbags, or standby units are needed first.
Finding High Ground, Dodging Bottlenecks, and Sharing Life-Saving Briefs
Knowing a neighborhood is flooding is urgent, but knowing where to run for help and how to reach people safely is what actually saves lives. When an operator clicks any zone to open the Rescue Action Drawer, SkyMap Response runs two synchronized spatial workflows:
- High-Ground Staging Lookup: Uses Place.searchNearby within 6.5 km to find civic staging facilities—hospitals, schools, stadiums, and community centers—and resolves their elevation via the Elevation API so shelters safely above floodwaters are prioritized.
- Traffic-Aware Dispatch Routing: Calls Route.computeRoutes with TRAFFIC_AWARE (TRAFFIC_ON_POLYLINE) from the selected staging facility to the flood zone to return real-time distance and ETA.
In real-world crises, flooded roads and heavy traffic can turn a short trip into a dead end. Pairing live traffic-aware routing with verified higher-elevation facilities helps responders and residents move towards safer ground without wasting critical time. And because field coordination happens on phones and group chats, clicking Copy Emergency Dispatch Brief formats a ready-to-share WhatsApp or SMS brief containing coordinates, rainfall load, upstream triggers, shelter elevation advantage, and route ETA.

Inspecting a zone in the Rescue Action Drawer surfaces high-ground staging options, a live traffic-aware route polyline, hydrological and elevation context, and a one-click dispatch brief.
Asking Your Map Questions in Plain Language With Command Copilot
During a storm, nobody wants to dig through menus or interpret five separate screens while coordinating rescue teams. That's where Command Copilot shines: a minimal Node/Express backend (POST /api/copilot in server.ts) isolates the GEMINI_API_KEY server-side while injecting live region, zone, and route JSON telemetry into Gemini inference (@google/genai).
Operators can ask plain-English tactical questions—such as which neighborhoods in Nairobi East need sandbags first based on the 24-hour QPF forecast, what backup route to take if a major corridor floods, or how to draft English and Kiswahili SMS warnings for community leaders. Grounding AI in live coordinates, elevations, and forecasts turns complex telemetry into fast, human-ready warnings in local languages.
How the Architecture Works—and Why This Pattern Matters for Humanitarian Tech
Under the hood, SkyMap Response is structured into four clear layers designed for responsiveness and resilience:
- Frontend Tactical Workspace: Built with React, TypeScript, Vite, Tailwind CSS, and @vis.gl/react-google-maps to power the Command Map, Triage Sidebar, Rescue Action Drawer, Hydrology Charts, and Command Copilot.
- Client-Side Hydrological & State Engine: Computes terrain vulnerability multipliers, runoff flow graphs, upstream domino alerts, and convective storm simulations in browser memory and localStorage, keeping 30-day geocode caches locally without requiring an external database.
- Google Maps Platform APIs Layer: Connects Maps JavaScript API, Places API (New), Elevation API, Weather API, Geocoding API, and Routes API into a unified pipeline.
- AI Dispatch Service: Uses an Express /api/copilot proxy with Gemini to synthesize live zone telemetry into tactical plans and bilingual alerts while keeping API credentials on the server.
Across Google Maps Platform more broadly, capabilities like Grounding with Google Maps and Maps Experience agent tools (via MCP), Places UI Kit, Geocoding API v4 destination and entrance details, and Weather API alerts make it even easier to connect AI and spatial data to real-world problems.
The end-to-end SkyMap Response pipeline runs from region/CSV ingestion and elevation/weather telemetry through risk scoring, traffic-aware routing, and Command Copilot.
Going from 39 Nairobi zones to a global search-any-city experience showed me how quickly modern mapping APIs and grounded AI can move from prototype to practical humanitarian tooling. Whether you're mapping flood triage in a global basin, planning heat or wildfire evacuations, or coordinating emergency relief, grounding AI in live geography helps turn raw signals into timely action.



