AI-generated Key Takeaways
-
This API allows you to search for gauges within a specific geographical area using a POST request to
https://floodforecasting.googleapis.com/v1/gauges:searchGaugesByArea
. -
The request body supports searching by either a region code or a defined loop (spherical polygon), and includes options to set the page size, page token, and whether to include non-quality-verified gauges.
-
The response body contains a list of gauges found in the requested area, along with an optional
nextPageToken
for retrieving subsequent pages of results. -
Due to the dynamic nature of gauge data, it is recommended not to cache or store the results from this API for long durations, with a day being the suggested maximum.
Search for gauges by geographical area.
Note: Gauges are occasionally added or removed, so the result of this API should not be cached or stored for long periods of time. Consider no more than a day to be relatively safe.
HTTP request
POST https://floodforecasting.googleapis.com/v1/gauges:searchGaugesByArea
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "pageSize": integer, "pageToken": string, // Union field |
Fields | |
---|---|
pageSize |
Optional. The maximum number of gauges to return. The service may return fewer than this value. If unspecified, at most 50,000 gauges will be returned. The maximum value is 50,000; values above 50,000 will be coerced to 50,000. |
pageToken |
Optional. A page token, received from a previous |
Union field
|
|
regionCode |
Search for all gauges within a region by region code. Use https://cldr.unicode.org/ (list https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). |
loop |
Search for all gauges within a loop (a simple spherical polygon, see |
includeNonQualityVerified |
Optional. Include in the result gauges that aren't quality verified. Please use with caution. Default is false. |
includeGaugesWithoutHydroModel |
Optional. Include in the result gauges that don't have a Google in-house hydro model. Default is false. |
Response body
The response of gauges.searchGaugesByArea.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"gauges": [
{
object ( |
Fields | |
---|---|
gauges[] |
Gauges found in the requested area. |
nextPageToken |
Optional. A token that can be sent as |