Google Maps / Geocoding
Discussion
Does anyone (Ted?!) have experience of using the Google Maps API, specifically the legalities of sending it postcodes to get it to pin them on a map? In the context of a directory of companies, for example - displaying them on a Google map.
There seems to be conflicting opinion on this - I think it's not acceptable to actually use the API to geocode postcodes and store the Long / Lat data, but other people say it's also unacceptable to get it to pin its own maps via postcodes which doesn't make sense to me.
There seems to be conflicting opinion on this - I think it's not acceptable to actually use the API to geocode postcodes and store the Long / Lat data, but other people say it's also unacceptable to get it to pin its own maps via postcodes which doesn't make sense to me.
Geocoding UK addresses is a pain in the proverbial. The database of postcode to geo coordinates is copyrighted to the Royal Mail and they charge a fortune for the rights to use it (cheapest I found was £400 per year plus 1p for every postcode searched). Because of this copyright issue, if you try to use the Google geocoder (which is part of the Google Maps API) for UK postcodes it'll simply return an error.
For geocoding small numbers of postcodes then the easiest option is to do this by hand using the likes of Multimap.
For medium quantities of postcodes I'd suggest using a 3rd party service such as www.isharemaps.com
Alternatively, you may be able to make use of a Sat-Nav postcode/geocode database if you can get hold of one. They do occassionally appear on the internet - though usually not for long once the Royal Mail discovers them.
Another alternative is to scrape maps.google.co.uk for the geo coordinates, though I would go easy on the numbers of postcodes if you do or you may find your IP address gets blocked fairly quickly.
For geocoding small numbers of postcodes then the easiest option is to do this by hand using the likes of Multimap.
For medium quantities of postcodes I'd suggest using a 3rd party service such as www.isharemaps.com
Alternatively, you may be able to make use of a Sat-Nav postcode/geocode database if you can get hold of one. They do occassionally appear on the internet - though usually not for long once the Royal Mail discovers them.
Another alternative is to scrape maps.google.co.uk for the geo coordinates, though I would go easy on the numbers of postcodes if you do or you may find your IP address gets blocked fairly quickly.
You'll still need to pass the longitude and latitude to create the marker in the correct position.
From looking at the XML generated for the Google maps in the classifieds I'd hazzard a guess that the postcode/geocode database used is not the full Royal Mail version, but a more approximate version using just the first part of the postcode, ie CF41, CF42 etc. That would make sense for its intended purpose as a rough guide to car locations.
The good news, if you don't need more detail than the area postcode, is that there's a free version of this available: http://www.jibble.org/ukpostcodes/
From looking at the XML generated for the Google maps in the classifieds I'd hazzard a guess that the postcode/geocode database used is not the full Royal Mail version, but a more approximate version using just the first part of the postcode, ie CF41, CF42 etc. That would make sense for its intended purpose as a rough guide to car locations.
The good news, if you don't need more detail than the area postcode, is that there's a free version of this available: http://www.jibble.org/ukpostcodes/
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


