{
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/",
  "holder": "PrompTugal.news",
  "note": "What PrompTugal.news makes: this file's structure, records and derived values.",
  "commercial_use": "allowed",
  "commercial_note": "With credit to PrompTugal.news; values taken from a source keep that source's licence."
 },
 "id": "ea-flood",
 "title": "London flood warnings and Thames levels (Environment Agency)",
 "what": "Flood warnings and alerts in force around London, and the latest water or tidal level at the Thames stations in London, and the nearest ten rainfall gauges (latest 15-minute total and rain per UTC day, 14 days kept), from the Environment Agency's real-time flood-monitoring API. Each warning with its severity, area and times; each station with its latest readings. Not a warning service.",
 "publisher": "Environment Agency (England)",
 "owner": "data.b@PrompTugal.dinis",
 "region": "london",
 "collector": "sources/ea-flood/collect.mjs",
 "country": "GB",
 "places": [
  "london"
 ],
 "place": {
  "id": "london",
  "name": "London",
  "lat": 51.5074,
  "lon": -0.1278,
  "dist_km_warnings": 30,
  "dist_km_stations": 15,
  "river_match": "Thames",
  "max_stations": 12,
  "rain_dist_km": 15,
  "max_rain_gauges": 10
 },
 "source_home": "https://environment.data.gov.uk/flood-monitoring/doc/reference",
 "reader_page": "https://check-for-flooding.service.gov.uk/",
 "schedule": {
  "cadence": "hourly",
  "how": "the Pages workflow (.github/workflows/pages.yml) every hour; two list requests, one request per Thames station, one list of rainfall gauges and one request per gauge (about twenty-two requests, 2.5 seconds apart, about a minute)"
 },
 "terms": {
  "summary": "Open Government Licence v3.0, no registration; acknowledge with: \"this uses Environment Agency flood and river level data from the real-time data API (Beta)\". Not reviewed by a person.",
  "page": "https://environment.data.gov.uk/flood-monitoring/doc/reference",
  "read_at": "2026-11-18",
  "quote": "These APIs are provided as open data under the Open Government Licence with no requirement for registration. If you make use of this data please acknowledge this with the following attribution statement: this uses Environment Agency flood and river level data from the real-time data API (Beta)",
  "quote_lang": "en",
  "republish": "yes, OGL v3.0 with the attribution above",
  "open_question": "The reference asks crawlers to take the latest values of all stations in one call every 15 minutes; this collector asks per station and per gauge, about twenty requests once an hour, which is lighter than a full copy every 15 minutes. security@PrompTugal.dinis to review."
 },
 "api": {
  "latest": "https://data.promptugal.news/api/v1/ea-flood/latest.json",
  "reads": "https://data.promptugal.news/api/v1/ea-flood/reads.json",
  "card": "https://data.promptugal.news/api/v1/ea-flood/card.json",
  "openapi": "https://data.promptugal.news/api/v1/ea-flood/openapi.json",
  "page": "https://data.promptugal.news/sources/ea-flood/"
 },
 "vault": null,
 "split": {
  "code": [
   "the collector reads the EA's warnings and stations near the point on the card, keeps the named fields and the latest readings",
   "GitHub Actions runs it and deploys the site"
  ],
  "agents": [
   "data.b.dev@PrompTugal.dinis wrote the collector and card on 18 November 2026 for data.b@ (WS-177)"
  ],
  "people": [
   "Dinis Cruz decided London as the first place beyond Portugal on 18 November 2026 (board/guidance/2026-11-18-london.md); no person has checked the values (not reviewed)"
  ]
 },
 "cost": {
  "per_run_tokens": 0,
  "per_run_model_cost_usd": 0,
  "runner": "GitHub Actions on a public repository: no charge; about twenty-two requests a run (under 300 KB)",
  "build_tokens": "not measured",
  "note": "Code only: no model is called when the data is collected."
 },
 "since": "2026-11-18"
}
