AI-powered geospatial crisis response system for Ghana with RAG-based reasoning and interactive mapping.
---
title: Ghana Crisis Geospatial Analyzer
emoji: 🌍
colorFrom: red
colorTo: pink
sdk: docker
sdk_version: "1.0"
pinned: false
license: mit
app_port: 7860
---
# 🌍 Ghana Crisis Geospatial Analyzer
> AI-powered geospatial crisis response system for Ghana with RAG-based reasoning, custom color themes, and interactive mapping.
---
## 🏗️ Architecture
### System Architecture Diagram
```
┌─────────────────────────────────────────────────────────────────┐
│ CLIENT LAYER │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ SPA React Client │ │
│ │ (frontend/src/App) │ │
│ ├───────────────────────────────────────────────────────────┤ │
│ │ Components: MapView, ControlPanel, ResultsDisplay │ │
│ └───────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
▼ [REST JSON API]
┌─────────────────────────────────────────────────────────────────┐
│ BACKEND LAYER │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ Express REST API Router │ │
│ │ (backend/api/routes.ts) │ │
│ └────────────────────────────┬──────────────────────────────┘ │
│ │ │
│ ┌──────────────────┴──────────────────┐ │
│ ▼ ▼ │
│ ┌────────────────────┐ ┌────────────────────┐ │
│ │ Geospatial Engine │ │ Gemini LLM │ │
│ │ (Point-in-Poly) │ │ (3.5-flash RAG) │ │
│ └─────────┬──────────┘ └─────────┬──────────┘ │
└────────────┼─────────────────────────────────────┼──────────────┘
│ …