Plotting leaked postcode data
Using the leaked postcode data that turned up on WikiLeaks:
UK government database of all 1,841,177 UK postcodes together with latitude and longitude, grid references, county, district, ward, NHS codes and regions, Ordnance Survey reference, and date of introduction. The database was last updated on July 8, 2009 and is over 100,000 pages in size.
You may be aware that in September 2009 this file appeared on WikiLeaks, at the time I thought little of it until I stumbled across an interesting post by Paul Battley
He plotted his local postal district in alphanumeric order using JavaScript and the HTML5 canvas element supported in most modern browsers (you need not apply if using Internet Explorer). The whole process is done by using a Ruby script and a dataset in CSV format that has been processed with dos2unix.
My main reason behind asking Paul for the source was to have a try myself and in retrospect upon finding it to be Ruby based, as a practical method to help me better understand Ruby and how it works.
Click the image to view the animation. Bare in mind if you use anything such as NoScript you will need to allow my domain for the animation to work.
I may have a play around with new datasets, and altering the colours at a later date. For now I have plotted NR1 with Paul’s original settings.