In the Google Maps API, multiple calls to google.maps.ClientGeocoder.getLatLng(address, callback)
are not guaranteed to finish in any order. What is an elegant way to determine all addresses have been geocoded, given an array of addresses?
Should I just count down based on the length of the array and execute code in the callback only if the countdown reaches zero, or is there a better way to do this in the Google Maps API?
Thanks