WAIT A MINUTE MR POSTMAN!

WAIT A MINUTE MR POSTMAN!

Do you know where your nearest postbox is?

This is a bit of a surprise blog as we didn’t know we’d be writing this a few days ago.

We were approached late last week by somebody at Royal Mail enquiring as to how we might demonstrate value from some of their fixed infrastructure data in a really quick time frame, which turned out to be around 12 hours.

The data set was simply the name and geo-locations of some of their post boxes within central London.

So, as per our standard methodology, it was a combination of:

  • Quickly determining what might be useful insights to both Royal Mail and the general public
  • Working out what additional data sources would have to be brought in to generate these insights
  • Understanding what processes would have to be used or built to produce these insights
  • Deciding on the best way to visualise the end output in a manner that could be both useful and engaging

Here’s what we managed (click on the link to go the app):

London Post Box Explorer

  • An interactive web based application showing the position of each of the post boxes.
  • As you drill down, each one the final “post box” markers/icons can be hovered over to show a pop-up of the Google Street View image for that location (admittedly this is a bit hit and miss at the moment as some photos aren’t pointing the right direction or worse, have internal panoramas)
  • As well as simply giving the post box positions, we added a route finder to the nearest postbox based on the underlying road network. Click on any point on the map in the coverage area and you will see a route planner and directions to the nearest postbox from that point (clicking again generates a new route and clicking the ‘home’ button clears the whole map)
  • Additionally we show the size of the population served by each post box, based on the 2011 census and by calculating the coverage area using Thiessen polygons (essentially creating a polygon who’s edges are the mid-point between a post box and all its nearest neighbours in all directions)

We thought this was a useful amount of information that could be produced simply from a non-sensitive but traditionally closed data set from Royal Mail merged with open data in a 12 hour turnaround.

It should be said that this is very much a demonstration, so isn’t perfect and there are obvious additions and improvements that could be applied in the future.

We do also acknowledge that other websites, such as localpostbox.co.uk, also offer alternative useful features relating to post box location, hence why we tried to shape ours a little differently with features such as the population coverage and the links to Google Street View.

Hopefully Royal Mail, and anyone else reading this, will find this as interesting as we did.

How We Did It

For this piece of work we relied on the colossal amount of open-source software that is available today, and the work of a passionate and vibrant development community. The application is built around Leaflet JS and Mapbox and supported by a multitude of open libraries:

Spatial analysis, including the creation of Thiessen polygons, was performed in QGIS.

UK census data was sourced from the Office for National Statistics (ONS).