AI-generated Key Takeaways
-
This method searches for the latest flood statuses based on the geographical area of the gauge.
-
The HTTP request uses a POST method with a specific URL following gRPC Transcoding syntax.
-
The request body can include parameters like
pageToken,pageSize, and eitherregionCodeorloopto define the search area. -
The response body contains a list of
floodStatusesobjects and an optionalnextPageTokenfor pagination. -
By default, the results only include gauges that are quality verified unless
includeNonQualityVerifiedis set to true.
Search latest flood status by geographical area. Note: Returns flood statuses whose gauge is within the given area, as opposed to e.g., affected area intersecting with the given area. This is subject to change in the future.
HTTP request
POST https://floodforecasting.googleapis.com/v1/floodStatus:searchLatestFloodStatusByArea
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "cutoffTime": string, "pageToken": string, "pageSize": integer, // Union field |
| Fields | |
|---|---|
cutoffTime |
Optional. Optional. The cutoff time for the flood statuses. When provided, the latest (last published) flood statuses as of the cut-off time will be returned. When not provided, the latest published flood statuses as of now will be returned. The minimum allowed cutoff time is 2025-08-01T00:00:00Z. If the cutoff time is before this time, an INVALID_ARGUMENT error will be returned. Represented as ISO 8601, e.g., "2025-10-17T10:34:00Z". |
pageToken |
Optional. A page token, received from a previous |
pageSize |
Optional. The maximum number of flood statuses to return. The service may return fewer than this value. If unspecified, at most 20,000 flood statuses will be returned. The maximum value is 20,000; values above 20,000 will be coerced to 20,000. |
Union field
|
|
regionCode |
The region by which to query flood statuses. Using CLDR, e.g., 'US'. |
loop |
The loop by which to query flood statuses. |
includeNonQualityVerified |
Optional. Include in the result gauges that aren't quality verified. Please use with caution. Default is false. |
Response body
The response of floodStatus.searchLatestFloodStatusByArea.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"floodStatuses": [
{
object ( |
| Fields | |
|---|---|
floodStatuses[] |
The latest flood statuses in the requested area. Currently, this is determined by the location of the gauges, this is subject to change in the future. |
nextPageToken |
Optional. A token that can be sent as |