What you *can* and what you *may* do are too different things.

Check the OpenSpace terms, you only may use the postcode to center a
OpenSpace map - nothing else.

You can as you note get it from the LocalSearch API, but note that 1)
Google have said this is short lived and will disappear (esp if people
abuse it) and 2) check the terms of the said API, can see nowhere
where it allows you to use it as  Geocoder.
http://code.google.com/apis/ajaxsearch/terms.html




2009/6/16 JavaJive <[email protected]>:
>
> Don't think this is right.
>
> You can get UK postcode lookup either via the UK Ordnance Survey's
> OpenSpace, or via Google Search.  As the latter includes NI, but the
> former doesn't (different mapping agency), I use the latter for
> preference.  Here's how:
>
>        searchGoogle = new google.search.LocalSearch();
>        searchGoogle.setSearchCompleteCallback( null, postCodeCallBack );
>        searchGoogle.execute( "<PostCode search string>,UK" );
>
>        function postCodeCallBack()
>                {
>                result = null;
>                try
>                        {
>                        result = searchGoogle.results[0];
>                        }
>                catch(e)
>                        {
>                        alert( "No match found!" );
>                        }
>                return result;
>                }
>
> Note:   This exact coding is untested because my actual code is part of
> a more complicated page, but I think it should run first time, or only
> require minor tweaks if not.
>
> On Jun 15, 9:58 pm, Mike Williams <[email protected]> wrote:
>> The Royal Mail has refused Google permission to provide geocoding for
>> full UK postcodes, so the Google geocoder can only process the "outcode"
>> part, and the "incode" part is ignored.
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to