Re:Uk traffic accident data for 2015, visualised
by brudgers on Sunday January 01, 2017 @11:25AM
(#13296176)
The density/zoom concern might be addressed by some sort of geospatial aggregation...roughly the equivalent to indexes on a database...a 'denormalization'. Certainly an interesting problem for any online mapping app.
Good luck.
Re:Uk traffic accident data for 2015, visualised
by yochannah on Monday January 02, 2017 @06:13AM
(#13300485)
That's a good idea, thanks! I was lying in bed thinking about this last night, as you do. MGRS coordinates might work well here: https://en.wikipedia.org/wiki/Military_grid_reference_system for higher zoom levels, then heatmap colour the grid 'squares' with an aggregate sum of accidents, and only add lat/long markers when I get to closer zoom.
Sloppy source here: https://github.com/yochannah/trafficuk
Uses firebase for data loading and initial project scaffolding, google's geocoding api for location search, a couple of icomoon icons for markers.
Known thing: performance is a nightmare in London. Not sure how to handle the heavy traffic problems in london, so I'm defaulting to a really close zoom. Doesn't seem too problematic in the rest of the country.
Tested in chrome and ff on a macbook pro - would welcome feedback from other oses/browsers.