I am developing an application that uses client side geocoding but
the*requests/sec
* exceed limit.
I added a queue to the geocoder and i perform* bulk geocoding* with a delay
as shown below:
for( item in queue)
{
geocode(item, *function(result,status) { doSomethingWithResults;
doSomethingWithItem;});*
delay;
}
The callbackFunction uses results and the item that was geocoded.
But there is a problem with the geocoder's callback function (marked with
blue) and the closure that is created between the for loop and this
function. The item in the callback function is always the last item of the
queue.
Any ideas to fix the issue?
Is there a better way to bypass the limit of requests/sec?
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.