A GlocalSearch() instance can only perform one search at a time, because the setSearchCompleteCallback() associates a callback with the whole GlocalSearch() object, not the individual request like GClientGeocoder does.
You could wait for one usePointFromPostcode() to complete before issuing the next, but be aware that the Google AJAX Local Search isn't very quick, so there might well be a significant delay while your page opens. The easiest solution is to geocode your postcodes offline once and store the coordinates instead of GLocalSearch()ing them each time someone opens your page. Doing that has the advantages of making the code really simple, avoids any problems with asynchronous functions, is much faster, and doesn't waste Google server resources. -- Mike Williams http://econym.org.uk/gmap -- 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.
