Skip to content
Simon edited this page Jan 26, 2017 · 1 revision

Translink Stay or Go

This Project is mostly intended as a teaching project as part of the UBC R Study Group.

The project aims to act as a map that uses some sort of probablistic model to predict whether (in aggregate) it's better to walk to the nearest SkyTrain station, or to wait for the next bus.

The idea is to pair the Translink API with a shiny app and the leaflet mapping tools available in R.

This project is still in the planning stages, but it uses the following logic:

  • For all Translink Routes, find the timetable and the list of stops.
    • For each route calculate the length of time taken from stop n to an STN stop.
    • For each route calculate the average wait time at a stop, at some time interval.
    • For each stop in a route calculate the average minimum walking time to the STN stop.
    • When the walking distance is (on average) less than the average wait + ride time, then the descision should be made to 'go'.
Clone this wiki locally