divvyapiapi
divvyapiapi copied to clipboard
Create a "dock load" method
Dock load is the number of docks filled with bikes.
dock load = 100-(SUM(availableDocks) / SUM(totalDocks))*100
...I think
The call would be /stats/dockload and would return the following:
{"response": { "dockLoad":60, "availableDocks":400, "totalDocks":1000, "timestamp":"2013-08-25 01:00:02 PM", "stationsInService":30 } }