Skip to content

Instantly share code, notes, and snippets.

@mboos
Last active November 24, 2015 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mboos/731b39ff465c89ad0434 to your computer and use it in GitHub Desktop.
Save mboos/731b39ff465c89ad0434 to your computer and use it in GitHub Desktop.
Potential bike routes in Waterloo Region plotted using 2011 Transportation for Tomorrow Survey trip pairs.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mboos
Copy link
Author

mboos commented Nov 23, 2015

I used OpenStreetMap data to generate a graph of roads, paths, and cycling facilities in Waterloo Region. The graph's edge weights are based on distances scaled by the following (sometimes compounding) factors:

  • quiet streets (residential) - 0.85
  • busy streets ('primary' and 'secondary') - 1.7
  • multi-use pathway, paved - 0.33
  • multi-use pathway, unpaved - 0.67
  • sidewalk - 4
  • sharrows - 0.7
  • bike lane - 0.5
  • protected bike lane - 0.4

My choice of factors was loosely based on studies of cycling route choice preferences for the San Francisco County Transportation Authority and Transport for London.

I chose approximately 5000 bicycle trip origin and destination zone pair samples from the 2011 Transportation for Tomorrow Survey (via the Data Management Group), and picked random points within the corresponding survey zones (2006 GTA) as pairs of origin and destination coordinates. Using the weighted graph of the road network, I computed the 'shortest path' for each trip, which I have plotted in the map above.

I made similar map of model bicycle routes was using origin and destination pairs for all travel modes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment