Re:Global heatmap of cycling and running routes
by 3rd3 on Friday May 02, 2014 @05:37PM
(#7688328)
How do you calculate exacly the coloring of the heat map? Is the scaling of it locally adjusted or is it a global/absolute scale?
[ Parent
| on HN ]
Re:Global heatmap of cycling and running routes
by paulmach on Friday May 02, 2014 @05:46PM
(#7688369)
Each pixel has a count. Each tile gets a 90 percentile value. Every corner gets the average of its 4 tiles. Every pixel in the currently requested tile gets a value [0, 1] based on the bi-linearly interpolated "max". It's then colored based on that final value.
Maybe unnecessarily complicated, but it does provide really good local normalization. You also get cool looking shading like in this location http://labs.strava.com/heatmap/#16/-121.76487/38.49134/gray/...
This is very interesting. thanks! I would love to know about the whole setup in detail. nudge
(edit: Your color scales are not really intuitive, I have no idea what red or blue means or red vs green.)