Google Maps with UK postcodes

Whilst checking the work website yesterday I noticed that the Google Maps powered postcode based route finder had stopped working. Back when the site was in developement I found to my delight that UK postcode searching via Google’s API was now a possibility, so we decided to have an interactive map rather than a boring static one.

I did some research and found this from a Google employee:

Earlier this week, we fixed a bug that was allowing the precise location of full UK postcodes on the Google Maps API. This is functionality that, due to data usage terms and conditions, we cannot yet offer our API users but we hope to be able to offer this service in the future.

The data usage terms and conditions refers that the fact that the Royal Mail own the copyright on postcode data and charge rather hefty fees to license their database. Not wishing to pay those fees I set about finding another way and found this page. This example uses Google’s Local search to geocode the postcode then uses that geocode to search Google Maps. I used the usePointFromPostcode function in our own map and modified some existing bits in map the page to make use of the new function. And finally it’s now back up and running.

Oxeye Daisy map page

One Response to “Google Maps with UK postcodes”

  1. Baz On September 10th, 2008 at 5:32 am , Baz wrote:

    You cheap skate :P lol… nice one tho. Might use that method myself.

Leave a Reply

(will not be published)