CalebRoenigk / can-i-tube

This website checks the a small selection of rivers to see if it is safe to tube. This check is done using realtime data from USGS on water flow from the selected river.
1 stars 0 forks source link

Configure USGS call to be 1 call instead of two #59

Closed CalebRoenigk closed 4 years ago

CalebRoenigk commented 4 years ago

USGS call should be 1 call with 3 parameters. First figure out if all sites have water temp, if not see what happens when usgs request cant return that parameter.

The 3 parameters are:

CalebRoenigk commented 4 years ago

Parameters should be dynamic in the initial USGS call. In addition, each river info item should contain an array that tells the USGS call what parameters to ask for. Regardless of what parameters are returned, all 3 data cookies for the call will be logged. When a value is not present, log a 'null' value.