Returns multiple locations given a bounding box.
GET {{baseUrl}}/history/energy/bbox?lat1={{lat1}}&lon1={{lon1}}&lat2={{lat2}}&lon2={{lon2}}&start_date=<integer>&end_date=<integer>&threshold=<number>&units=<string>&callback=<string>&key=<string>
Returns aggregate energy specific historical weather fields, over a specified time period. Supply a bounding box ex: lat1=40&lon1=-78&lat2=38&lon2=-80. This API will return UP TO 150 stations, aggregated by the specified time period startdate to enddate.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
lat1 | string | ||
lon1 | string | ||
lat2 | string | ||
lon2 | string | ||
start_date | string | Start Date (YYYY-MM-DD or YYYY-MM-DD:HH). | |
end_date | string | End Date (YYYY-MM-DD or YYYY-MM-DD:HH). | |
threshold | string | Temperature threshold to use to calculate degree days (default 18 C) | |
units | string | Convert to units. Default Metric See <a target='blank' href='/api/requests'>units field description</a> | |
callback | string | Wraps return in jsonp callback. Example: callback=func | |
key | string | Your registered API key. |