Repository navigation
Theft data heat map - #52
Merged
Merged
Conversation
…cript and integrate with the rest of the DB
(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/)
…into theft-data-heat-map
…emoved old notebooks no longer needed
…into theft-data-heat-map
…ta workflow added
| @@ -10,8 +10,6 @@ | |||
| get_bike_parking_info, | |||
| get_building_evaluations, | |||
Contributor
Author
There was a problem hiding this comment.
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.
| /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/ |
Contributor
Author
There was a problem hiding this comment.
Lol, I hate when git does this.
…he download to make sure we have history
…into theft-data-heat-map
|
Looks all good to me! |
kat3sjy
approved these changes
Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
bicycle_theft/moduleget_wards_gdf/get_neighbourhoods_gdfout ofapartments/update_apartments.pyintoresources/toronto_boundaries.pyso theft zones and apartments can share them.update-theft-rate-zonesjob inrun-update-sensor.yml. It runs afterupdate-bike-theft-dataand reuses the raw theft download that job publishes to thedatabranchNotes for reviewers
--min-bike-trips).