Skip to content

Theft data heat map - #52

Merged
KarishmaChanglani merged 10 commits into
mainfrom
theft-data-heat-map
Oct 20, 2026
Merged

KarishmaChanglani merged 10 commits into
mainfrom
theft-data-heat-map

Conversation

@KarishmaChanglani

@KarishmaChanglani KarishmaChanglani commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a pipeline that splits Toronto into ~400 zones with roughly equal bike-trip volumes
(Voronoi cells using Manhattan distance on the street grid). Publishes
theft rates per 1,000 bike trips

Changes

  • New bicycle_theft/ module
  • Refactor: moves get_wards_gdf / get_neighbourhoods_gdf out of
    apartments/update_apartments.py into resources/toronto_boundaries.py so theft zones and apartments can share them.
  • Workflow: new update-theft-rate-zones job in run-update-sensor.yml. It runs after
    update-bike-theft-data and reuses the raw theft download that job publishes to the data branch
  • Leaving some extra data sourcing in for future enhancements.

Notes for reviewers

  • Zones with fewer than 100 estimated bike trips are greyed out on the plot because their rates are too noisy (--min-bike-trips).
  • TTS data comes from the School of Cities GitHub repo, which is a new external source.

KarishmaChanglani and others added 8 commits December 31, 2025 16:25
(Can be deleted later when merged to production)
- Transportation Tomorrow Survey data guide (from https://dmg.utoronto.ca/transportation-tomorrow-survey/tts-reports/)
- School of Cities tts zones shapefile with summary data (from https://dmg.utoronto.ca/survey-boundary-files/) - includes a column for city, which might be helpful
- 2015 research paper on methodology used in Montreal
- City of Toronto open dataset on bicycle thefts
- Crosstab query result for trip destinations in Toronto (as 2022 tts zones) x primary mode of travel (from https://dmg.utoronto.ca/drs-access/)
@@ -10,8 +10,6 @@
get_bike_parking_info,
get_building_evaluations,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might look like I am removing existing code but I am really just moving it to test_toronto_boudaries since it wasn't apartment specific and can be used shared.

Comment thread .gitignore
/src/bikespace_data/bike_thefts/*.geojson
/src/bikespace_data/bike_thefts/statuses/
/src/bikespace_data/bike_thefts/source_files/ No newline at end of file
/src/bikespace_data/bike_thefts/source_files/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol, I hate when git does this.

@kat3sjy

kat3sjy commented Sep 29, 2026

Copy link
Copy Markdown

Looks all good to me!

@KarishmaChanglani
KarishmaChanglani merged commit 3dde8cc into main Oct 20, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in BikeSpace Project Tracker Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants