Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exu3/citi-bike
UVM CS 1210 Final Project
https://github.com/exu3/citi-bike
Last synced: 24 days ago
JSON representation
UVM CS 1210 Final Project
- Host: GitHub
- URL: https://github.com/exu3/citi-bike
- Owner: exu3
- Created: 2021-01-31T07:22:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-03T12:11:17.000Z (8 months ago)
- Last Synced: 2024-10-27T23:48:14.647Z (2 months ago)
- Language: HTML
- Homepage:
- Size: 11.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# citi-bike
This project is a visualization of Citi Bike (a NY-based bike share program) usage using publicly available data. Geospatial data is visualized with maps which show the various trips taken throughout the month and corresponding information such as the type of bike (electric vs classic) and time of day. We also used scatter plots and histograms to visualize the popularity of certain routes, plotting trips using the start and end stations with correlation to the number of occurences.
This project uses `plotly` for graphing, `folium` for maps, and `Flask` for the web server that serves the visualizations.
## Run locally
Run `./setup.sh` or follow the steps below.
Create a virtual environment.
```sh
$ python3 -m venv citibike
```Activate the virtual environment.
```sh
$ . ./citibike/bin/activate
```Install dependencies.
```sh
(citibike) $ pip install -r requirements.txt
```To generate or update maps/graphs respectively, run `maps.py` and `graphs.py`. The output will be saved to the `static` directory.
Start the dev server.
```sh
(citibike) $ flask run
```Then, open [http://127.0.0.1:5000](http://127.0.0.1:5000) in your browser.
##### appendix: division of labor, project difficulty
Elijah worked on the graphs, and Ella worked on the maps and web interface. The estimate of project difficulty is "moderate." We used Python language features covered in the course and libraries that were not covered in the course but are well-documented online. We encountered difficulties working with large datasets and ended up just going with a specific month because it was more manageable. The effort spent on this project is roughly equivalent to that of four or five homework assignments.