Postcode Lottery


Enter 1 to 5 postcodes and get back a table or list of comparisons on various categories from the Crime Level compared to the national average, to the nearby local activities. Data sources used include:,,,, and more to be added.

On the technical side, it's a modular PHP backend, where you can easily add new categories of data with PHP classes. The current classes fetch data from JSON sources or scrape directly from HTML output using nasty custom hacks. Outputs as valid HTML5 and CSS2.1.

Ideas for taking this project forward

  • Add many more categories
  • Allow users to choose which categories to compare
  • Add some client-side code allowing things to load asynchronously

Estimated costs for taking this project forward

  • Money to pay for a postcode database or similar service to verify postcodes
  • The rest depends on what categories are added. Not much.

About the data used for this project - Digital Switchover Dates, scraped from HTML - Recycling categories, scraped from HTML - Ward Population, Crime Level, from their wonderful API (JSON) - Number of local events from their JSON API

Project URL:

Created at

Young Rewired State 2010

Flickr Photos

Add photos by tagging them with rewiredstate:project="postcode-lottery"