Skip to content

parseGlofasFloodEvents ​

Import from: @xbbg/xnews, @xbbg/xnews/parsers

parseGlofasFloodEvents(body, basins?, forecastStartDate?): EventRecord[]

Defined in: src/sources/glofasflood.ts (declaration: sources/glofasflood.d.ts:29)

Parses either the batched array response or Open-Meteo's bare object for a single requested location. forecastStartDate makes the history/forecast boundary explicit; without it, the final 31 daily values are the forecast.

Parameters ​

body ​

string

basins? ​

readonly GlofasBasin[]

forecastStartDate? ​

string

Returns ​

EventRecord[]

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.