Hubway is Boston's bike-sharing system. It started operations in July 2011 and the number of people taking rides every day has been growing year over year since its inception. Now is an excellent time for Hubway to think carefully about growing their system of bike stations. The purpose of this software is to provide a quantitative prediction of the best locations in the greater Boston area for new Hubway stations.
views.py: top-level routine that runs in the background on the AWS EC2 instance. Generates web pages and their content dynamically using Flask. Calls gridpredict to do most of the heavy lifting.
gridpredict.py: takes an input location from views.py and runs several subroutines that:
- obtain the predicted rides per day at that location;
- obtain the rank of the proposed location compared to existing stations;
- redraw the map of predicted rides per day in a subgrid centered on the new location and serve the resulting image to Flask for display in the output web page;
- store the results in a database.