Helios APIs: Cameras (Index)
To return a list of cameras near a given location, we can query the Index method in the Cameras API using a variety of query parameter options, depending on our particular needs.
To search for cameras located in downtown Rochester, NY using a bounding box our API request looks like this:
We can also search for cameras in the same area using a latitude, longitude, and radius:
If we need more precision on the area of interest where we want to search, we can query using a polygon:
All of the cameras in the Helios network contain text attributes describing the location's city, state, region, and country. We can query for cameras in Rochester, NY using these attributes as well:
When requesting route information from services like Google Maps or Mapbox Directions, the route is often provided as an encoded polyline. We can used this polyline to perform a polygon search around the given route. To search for cameras along of a stretch of Interstate 490 in Rochester, NY our query looks like this:API documentation for more information on specifying different values for the polyline precision and radius used to compute the search polygon.