This program will consume Citibike trip data and create a friendly CSV showing trips (start or end) in each month of the dataset. The results will show the number of uses of each dock per month. It will count as a usage if the dock is either the start or end of a trip. It will count twice if it is both the start and end of the trip. In my test data, that is a very minimal number of trips.
- Clone the repo
- Install node and npm
npm ci
(?) the dependencies.- Replace the station ids in the script with the ones you're interested in
- You can find them here
- Dowload the months you're interested in from
here, unzip them, and put
the csvs in the
data
directory. npx tsx runner.js
- This will take anywhere from a few minutes to an hour depending on how fast your computer is and how many files you're crunching. It can be a lot of data.
- Find the results in
output.csv
file
Results will look something like this.