insight-lane / crash-model

Build a crash prediction modeling application that leverages multiple data sources to generate a set of dynamic predictions we can use to identify potential trouble spots and direct timely safety interventions.
https://insightlane.org
MIT License
113 stars 40 forks source link

Buffer polygon #168

Closed j-t-t closed 5 years ago

j-t-t commented 5 years ago

Cambridge's city polygon via open street maps is incorrect, leaving out 3% of crashes, most of which are at a high crash intersection. This change intends to correct that, by doing the following for cities that have a polygon

For cities that don't have a polygon, results are unchanged. For Boston and DC, fewer than 1% of crashes fall outside the city polygon, so their results are unchanged. For a city whose crash data is for a larger area (say on the county level), more than 10% of crashes would fall outside the city polygon, so that would also remain unchanged. So far, this only affects Cambridge (and will affect neighboring Somerville once Somerville is onboarded).

codecov[bot] commented 5 years ago

Codecov Report

Merging #168 into master will increase coverage by 0.71%. The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master     #168      +/-   ##
==========================================
+ Coverage   39.93%   40.64%   +0.71%     
==========================================
  Files          26       26              
  Lines        2677     2721      +44     
==========================================
+ Hits         1069     1106      +37     
- Misses       1608     1615       +7