Skip to content

Collect live TTC fleet data on AWS and experiment with route optimization, forecasting and anomaly detection.

Notifications You must be signed in to change notification settings

vgelinas/route-optimization-with-open-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Route optimization with transit open data

This project collects live transit data from public APIs, which I'm using to experiment with route optimization, forecasting and anomaly detection methods. This is a work in progress.

I'm working here with the Toronto Transit Commission (TTC) bus & streetcar data, but any transit agency covered by the NextBus web API can be used.

With this project I had a few goals in mind:

  • get comfortable with AWS, and build a data pipeline to support this project and the next few;
  • setup a benchwork for experimentation;
  • learn how to best integrate statistics, machine learning and combinatorial optimization together to solve realistic problems in route optimization, network analysis and adjacent topics;
  • finally learn spark.

Concretely, the current goals are to:

  • create & maintain statistical distributions of transit over the TTC network, updating incrementally;
  • perform route optimization, which depends on time-of-day;
  • detect network anomalies and reroute around them.

 

Project structure

Project architecture  

Things of interest

Data collection

Location data is collected every minute from a fleet of ~2200 vehicles, with 10 days retention.

 

Transit statistics

As you'd expect, the time of transit through the city depends heavily on the hour and traffic conditions. This is highly visible in the data, exemplified in the ridgeline plot below:

  Transit times on the 506West

About

Collect live TTC fleet data on AWS and experiment with route optimization, forecasting and anomaly detection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published