Generate a report based on your Bike Share Toronto trip data
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
misc Add deprecated note Mar 4, 2015
sample_data New sample data Feb 24, 2015
.gitignore Update JSON url and fix formatting of NULL values Apr 26, 2018
LICENSE Create LICENSE Mar 6, 2015
README.md Add Shinyapps.io demo URL Apr 26, 2018
bike_share_ride_report.Rproj Add Rproj file Jan 26, 2015
bike_stations.json Initial import Dec 2, 2014
screenshot.png Update JSON url and fix formatting of NULL values Apr 26, 2018
server.R Load sample data from Github Oct 25, 2015
ui.R Update JSON url and fix formatting of NULL values Apr 26, 2018
weather.rds Update historical weather Oct 25, 2015

README.md

Bike Share Toronto Ride Report

A Shiny app takes your personal ride data from Bike Share Toronto and creates a collection of summary reports and charts of your ride usage.

A demo is available here: https://kcha.shinyapps.io/bike_share_ride_report/

screenshot

Requirements

  • R 3.1.1+ plus the following packages:
  • assertthat
  • dplyr
  • ggmap
  • ggplot2
  • rjson
  • stringr
  • shiny
  • weatherData

Run the following command in your R console to install the above R packages:

install.packages(c("assertthat", "ggplot2", "ggmap", "dplyr", "rjson", "stringr", "shiny", "weatherData"))

Usage

Station data

Bike station geolocation data is obtained from https://tor.publicbikesystem.net/ube/stations

Getting ride data

Currently, the only way to get ride data is to log into your Bike Share Toronto online account and manually copy and paste all of your trip data to a text file. This could take a while if you have hundreds of trips that span multiple pages. The format of the trip data should be exactly as it appears when viewing your data online (including the headers). See sample_data/ride_data.txt (fake data) for an example.

Starting the Shiny app

To start the app on your local machine, run the following command in your R console:

shiny::runGitHub('bike_share_ride_report', 'kcha')

Disclaimer

This is a personal project and not affiliated with Bike Share Toronto.