Helios APIs: Alerts (Search), Cameras (Index), Cameras (Live), Observations (Index)
We can use the location data provided with each alert as inputs to other APIs to find related resources, such as live camera imagery or current observation data.
To begin, we query the Alerts API to identify alerts based
by text, event type, location, or time. A
geometry attribute is included for each alert
included in the API response.
To find cameras in a given alert area, we can query the Cameras
API and supply a bbox query parameter using the alert's
bounding box. Assuming an alert bbox value of
[-84.375, 39.550, -84.023, 39.726], our camera
query would be:
We can then use the camera IDs returned by the camera query to request live imagery for each camera, e.g.
We can also query for current observation data in the alert area using the same approach we used for querying cameras, except this time we use the Observations API instead of the Cameras API. To search for indvidual observation points, our query would be:
If we are more interested in trending or summary data rather
than individual observations, we can modify our observations
query to request aggregation data. Let's assume that we are
only interested in recent observations where wet roads were detected.
We can use the
aggs query options to search for wet road
observations in the alert area and aggregate the results by time: