30 Nov

Google Maps API with UK data

Articles, Latest Developments

While working on a real estate CMS, I realized that Google Maps API is having some legal issues in providing geocode data for UK, Japan or China. The call to API is failed with code 603 (G_GEO_UNAVAILABLE_ADDRESS) indicating that legal or contractual reasons prevent Google from returning the information. At first, I realized that we might have to drop the idea of Google Maps, but after a quick test with Yahoo Maps, i found Yahoo to be working fine with UK.

I never wanted to use Yahoo Maps, so i come up with this solution:

In order to run Google Maps for UK, you have to extract geocodes using Yahoo API, and then pass same geocodes to Google Maps.

Here’s the Yahoo URL which return the geocode:

http://api.local.yahoo.com/MapsService/V1/geocode?appid=[your_app_id]&location=6%20Salisbury%20Square,%20LONDON

Just call Yahoo API for the data at place where you’re requesting google.com, and pass on the geocodes to GoogleMap. And you’re done !!

I found out a lot of people asking about this, so I decided to write a small post here, if anything needed in details, please post your comments.

2 Responses to “Google Maps API with UK data”

Subscribe to comments with RSS Feed or TrackBack from your own site.

  1. mapperz said,

    on Thu, 30 November, 2006 at 3:21 pm

    We have had the same issue, Google did release UK Geocoding by mistake.
    blogged here
    http://mapperz.blogspot.com/2006/11/uk-addresses-geocoded-via-google-maps.html

    did some research in this.
    As you report Yahoo! do UK Geocoding Addresses
    Mapperz reported Microsoft doing UK Geocoding Addresses
    http://mapperz.blogspot.com/2006/08/uk-geocoding-microsoft-virtual-earth.html
    and in 3D

    Mapperz uses
    http://geo.localsearchmaps.com/
    example
    http://geo.localsearchmaps.com/?street=48+Leicester+Square&city=London
    in the google map format.
    from
    http://emad.fano.us/blog/?p=277

    but we like the way the Yahoo is in a xml format
    GeoRSS can be applied to it.

    Have a URL (in Alpha - moving to Alpha 2 soon) if anyone is interested
    contact mapperz@gmail.com for a invite

    Warning if using Yahoo Geocoder with Google Maps can be done but break the ‘Terms of Use’ with Yahoo.

    Google’s AJAX search does geocode UK Addresses.
    can be seen working live here:
    http://www.online-archaeology.co.uk/GoogleMap/

    happy geocoding
    mapperz

  2. admin said,

    on Thu, 30 November, 2006 at 10:26 pm

    mapperz, Very nice piece of info there. I was thinking same about ‘Terms of Use’ with Yahoo.

    BTW, this link rocks..
    http://geo.localsearchmaps.com/?street=48+Leicester+Square&city=London

    Thanks
    Max

Leave A Reply