On Jan 25, 2:00 pm, kghastie <[email protected]> wrote:
> > 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)
>
> I've been looking at the callback function from directionsService.route, but
> I don't see anything in there that would tell me which failed.
Sorry, when I read your post, I thought geocoder. I don't know the
answer for the directions service (but I may have seen discussions in
the past). I have a v2 map that geocodes all the input addresses, then
if they succeed, gets the directions using the coordinates rather than
the address, you could try that.
-- Larry
> Unfortunately we need to send all of the waypoints in one, since we are
> doing a multi-waypoint route, so I don't think the metering is an option.
> Here is how I'm calling directionsService. When you are talking about
> function closures, does this apply?
>
> directionsService.route(request, function(response, status) {
> switch(status) {
> case google.maps.DirectionsStatus.OK :
> // etc...
--
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.