thanks Ross k.code is working fine.
Before, I had put that array in a
for loop and assigned the setTimeout function for 1sec,but the code
inside for loop executes faster with out waiting the response and the
time delay .
On Jul 11, 1:52 pm, Rossko <[email protected]> wrote:
> > Rossko ,I have one doubt apart for this polyline . how use the
> > callback function when we have a array of lat,lng and I need there
> > address by using reserve geocode ,but the code runs faster inside
> > the for loop after sending the request and doesnt wait for the
> > response.
>
> Techniques for multiple geocoding (reverse is same) discussed here -
> http://econym.org.uk/gmap/geomulti.htm
> The best plan is not to do it all - or rather, do it only once and
> store the data yourself so that you don't reverse geocode the same
> list (or parts of the same list) over and over every time someone
> visits your page.
>
> If you really need to know when some multiple activity has finished,
> there are a few things you could do.
> For example, if you know how many requests you are sending, you could
> set up a counter and have each callback execution decrement the
> counter; if it gets to zero it knows its the last one and can do any
> extra work you wanted.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---