On Jan 25, 12:17 pm, kghastie <[email protected]> wrote:
> Hey, in v2 I was able to do this:
>
> GEvent.addListener(directions, "error", function() {
> // whoops, couldn't load the address
>
> }
>
> But I don't see such an error event in v3.  In v2, it would error even if it
> was able to find the city/state or zip.  But here it just quietly switches
> the address and retuns a status of OK.
>
> I am aware that if it can't find one of the addresses at all it comes back
> as status ZERO_RESULTS, but what about when it can only find the city/state
> or zip?

http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingAddressTypes
Check to see the types[] returned.

>
> Also, after getting a ZERO_RESULTS, is there a way to tell WHICH address
> failed?

Yes, if you keep track of the requests you are sending, it should be
obvious (function closure is one way, metering the queries so there is
only one active at a time is another).

  -- Larry

>
> Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to