Visualizing my citibike ride history + a sample of global citibike rides in the style of a strava heatmap.
How to visualize your personal citibike data:
- Download your data from the citibike website following the instructions here: https://github.com/fhoffa/code_snippets/tree/master/baywheels
- Get a Google API key, and run
generate_routes.pyto use the Google Maps Routing API to find approximate the routes between station pairs - Run
raster.pyto generate a raster heatmap (seecitibike_raster.pngfor an example), orpython3 -m http.server+ openjitter.htmlin your browser to view a SVG heatmap with configurable jitter.
How to visualize global citibike data:
- Download the dataset of choice from here: https://citibikenyc.com/system-data
- Run
sample_global_data.pyto extract a random sample of rides (I don't recommend more than 10k rides, because the Google Maps API is only free for the first 10k calls a month) - Get a Google API key, and run
generate_global_routes.pyto use the Google Maps Routing API to find approximate the routes between station pairs. - Run
raster.pyto generate a raster heatmap (seecitibike_global_raster.pngfor an example), orpython3 -m http.server+ openjitter_global.htmlin your browser to view a SVG heatmap with configurable jitter.