File size: 940 Bytes
697e456
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: SurgeInk API
emoji: 🌊
colorFrom: blue
colorTo: red
sdk: docker
app_port: 8000
pinned: false
license: mit
---

# SurgeInk API

FastAPI backend for [SurgeInk](https://github.com/kredd2506/SurgeInk) β€” flood + disaster risk visualization. Proxies FEMA NFHL flood zones, NASA EONET disaster events, Open-Meteo river discharge forecasts, and Nominatim geocoding.

## Endpoints

- `GET /api/health` β€” health check
- `GET /api/v1/geocode?q=...` β€” Nominatim proxy
- `GET /api/v1/forecast?lat=...&lng=...` β€” Open-Meteo river discharge
- `GET /api/v1/fema/zones?bbox=...` β€” FEMA flood zones (US, GeoJSON)
- `GET /api/v1/disasters?categories=...` β€” NASA EONET active events
- `GET /api/v1/layers?bbox=...` β€” Layer catalog

API docs: [/api/docs](/api/docs)

## Stack

- Python 3.11 + FastAPI + uvicorn
- httpx for async external requests
- pydantic-settings for config
- Redis (optional, graceful degradation if unavailable)