I'm using the GDirections object to get routes and then extract the
duration needed - my script makes many calls to it, and the first time
I run it through it runs to completion. No errors crop up. When I do
it a second time, however, it starts off but suddenly stops getting
responses for GDirections requests. The server doesn't respond with
any error codes. (I'm using an event listener for errors - when I had
error 620 before it DID show up, so I'm pretty sure the code's
alright.)

I try a simple snippit in firebug:

var dir = new GDirections()
var searchString = "from: NY, USA to: CA, USA";
var dirListener = GEvent.bind(dir,"load",this,function() {
     C.console(dir.getDuration());
});
var errorListener = GEvent.bind(dir,"error",this,function() {
     C.console(dir.getStatus());
});
dir.load(searchString);

And no response. (C.console()) is just a function to output its
parameters to the firebug console.) I execute C.console(dir.getStatus
()) manually, and it outputs an object with code = 500 and request =
"directions" The confusing thing, though, is that if I wait for
another 5 minutes or so it starts responding with actual times. Is
there another limit on georequests over smaller periods? I'm aware of
the query per second and queries per day limit, but this one doesn't
seem to have been mentioned.

I'm sorry I couldn't post a link; my script is at such a stage that
there isn't an interface to control things and I'm typing commands
through a command line. It's not the easiest thing to use, and I felt
that the nature of this question didn't require a link. Thanks in
advance for the help!
--~--~---------~--~----~------------~-------~--~----~
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