Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to display "heat map" of incidents, rather than pins #25

Closed
zarino opened this issue Aug 2, 2018 · 5 comments
Closed

Option to display "heat map" of incidents, rather than pins #25

zarino opened this issue Aug 2, 2018 · 5 comments
Assignees

Comments

@zarino
Copy link
Member

zarino commented Aug 2, 2018

As a council safety officer, I want to search for a location and then see which roads or intersections there are the most dangerous, so that I can factor those areas into my safety reports and recommendations.


Google Maps does this really nicely with their traffic estimates:

screen shot 2018-08-02 at 15 12 39

I’m guessing this would be hard for us to replicate, without the underlying road vector data. But I figured it was worth mentioning!

@davea
Copy link
Member

davea commented Aug 2, 2018

This is a really nice idea!

without the underlying road vector data

Assuming we did have it (the map is just OSM after all), how could we do this?

@davea
Copy link
Member

davea commented Aug 2, 2018

This blog post outlines a mechanism for calculating styles on a per-segment basis in QGIS - might be useful as a starting point for further exploration:

image

@davea
Copy link
Member

davea commented Aug 13, 2018

A bit of fiddling around in QGIS results in this:

layout 2

(aside, this really makes cycling in London look fun)

This was using the Collideoscope/Stats19 reports to date, on top of OS road data. So in principle it's possible.

@davea
Copy link
Member

davea commented Sep 19, 2018

Heatmap screenshot

Done and deployed.

@davea
Copy link
Member

davea commented Sep 19, 2018

The code for this is in mysociety/collideoscope-heatmap.

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

No branches or pull requests

3 participants