How palmacitra/geo-poverty-insight works
GEO·POVERTY·INSIGHT is a Next.js prototype for exploring Indonesian poverty indicators through province mapping, national statistics, trend analysis, and short-term-to-long-term policy pathways. The main user workflow is to open the dashboard, inspect the map, select a province for details, and switch to trend or policy views; two API routes also expose province and timeline data. The implementation uses a local prototype dataset. Relationships below are grounded in the README and sampled files; external data ingestion is not shown.
Main entry points: Dashboard.tsx Dashboard · povertyData.ts Prototype dataset · LeafletMap.tsx Province map · ProvinceDetail.tsx Province detail
Components 14
Dashboard app
Analysis views
- National stats
src/components/NationalStats.tsx - Map view
src/components/MapView.tsx - Province map
src/components/LeafletMap.tsx - Province detail
src/components/ProvinceDetail.tsx - Trend analysis
src/components/TrendChart.tsx - Policy matrix
src/components/PolicyMatrix.tsx
Data and API
- Prototype dataset
src/data/povertyData.ts - Province API
src/app/api/provinces/route.ts - Timeline API
src/app/api/timeline/route.ts
Other components
- Dashboard user
- Carto map tiles
Connections 19
- Dashboard user → Home page: opens
README.md - Home page → Dashboard: renders
src/app/page.tsx - Dashboard → Header: renders
src/components/Dashboard.tsx - Dashboard → National stats: renders
src/components/Dashboard.tsx - Dashboard → Map view: renders
src/components/Dashboard.tsx - Dashboard → Province detail: renders
src/components/Dashboard.tsx - Dashboard → Trend analysis: renders
src/components/Dashboard.tsx - Dashboard → Policy matrix: renders
src/components/Dashboard.tsx - Map view → Province map: loads dynamically
src/components/MapView.tsx - Province map → Dashboard: selects province
src/components/LeafletMap.tsx - Dashboard → Province detail: passes selection
src/components/Dashboard.tsx - National stats → Prototype dataset: reads stats
src/components/NationalStats.tsx - Province map → Prototype dataset: reads provinces
src/components/LeafletMap.tsx - Province detail → Prototype dataset: reads indicators
src/components/ProvinceDetail.tsx - Trend analysis → Prototype dataset: reads timeline
src/components/TrendChart.tsx - Policy matrix → Prototype dataset: reads domains
src/components/PolicyMatrix.tsx - Province API → Prototype dataset: returns data
src/app/api/provinces/route.ts - Timeline API → Prototype dataset: returns data
src/app/api/timeline/route.ts - Province map → Carto map tiles: requests tiles
src/components/LeafletMap.tsx