feat(infra): GET /api/infrastructure Overpass nuclear markers (bbox) #36
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "osint-dashboard/t_5955729a-osint-get-api-infrastructure-overpass-nu"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
New
GET /api/infrastructure?types=nuclear&bbox=minlon,minlat,maxlon,maxlatoverlay: Overpassnwr[power=plant][plant:source=nuclear]markers normalized to{id,name,lat,lon,type,extra}.Details
[timeout:25], 30s client headroom.OSINT_USER_AGENT(Overpass 406s spoofed browser UAs).overlay_catalog()entryinfra_nuclear(kind=points).types=enum is shaped for trivial military/hospital later (no transport changes).Tests
tests/test_infrastructure.py(8 tests, all passing): Overpass JSON -> markers, waycenter+ unnamed fallback, missing bbox 400, unknown type 422, route returns markers, catalog entry, cache hit does not refetch. Live query smoke-tested against overpass-api.de (Cattenom NPP returned correctly).Full suite: 190 passed, 17 skipped.
Overpass nwr power=plant + plant:source=nuclear, bbox-required, one in-flight per quantized bbox, 25s server query with identifying UA, 24h TTL cache. Normalized to {id,name,lat,lon,type,extra}. overlay_catalog entry infra_nuclear. Missing bbox 400; unknown type 422.