On Nov 3, 4:11 am, Uma <[email protected]> wrote:
> Hi,
> I want to check if the address i am giving to the google map is
> correct. I am displaying the map using the javascript.
> For eg. I give the Address1 =1231 Address2=2343
> I have used geocoder.getLocations(fromAddress, function (response)
> {....} method.
> The response here comes as 200 and so it goes to the else part
> displays the map . but actually the address is not correct. I need to
> display a error messge.
>
> Please help me how can i do this.

How do you expect the geocoder to tell the address is incorrect?
If you look at the documentation and/or Mike Williams' tutorial, the
GClientGeocoder.getLocations method will return an error code, the
getLatLng just returns null if it can't locate the address, but
doesn't return an error code.

  -- Larry

--

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