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.

--~--~---------~--~----~------------~-------~--~----~
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