On Sep 10, 8:53 am, Axeface <[EMAIL PROTECTED]> wrote:
> I am currently trying to geocode a list of addresses. I need a gap of
> two seconds between each geocode request. I have searched elsewhere on
> the discussion forum but couldn't find anything. This is what I am
> currently using but its bad.
>
> P.S. It is also very difficult for me to put my code on a website as
> it is currenlt embedded into delphi code so everything is in a weird
> format, sorry.
>
> var finished = false;
> setTimeout("finished = true;",5000);
> while(!finished)
> ;
Most browsers (other than Chrome) are single threaded...
While the processor is in the tight loop [while(!finished);]  nothing
else is going to be able to get any processor cycles.  Put a function
which does what you need where you have the "finished = true" and it
will be run after a 5 second delay...

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