Adding time delay to google map geocode
问题 I'm working on this map and trying to geocode around 150 markers but I'm hitting the geocode limit. How can I add a time delay to avoid hitting the limit? 回答1: This adds a timer to the geocoding so each marker has a delay. // Adding a LatLng object for each city function geocodeAddress(i) { geocoder.geocode( {'address': address[i]}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { places[i] = results[0].geometry.location; // Adding the markers var marker = new google