Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Using setTimeout and closure to overcome limit of 10 queries / second for getDetails
(function (j) {
var request = {
placeId: results[i]['place_id']
service = new google.maps.places.PlacesService(map);
setTimeout(function() {
service.getDetails(request, callback);
}, j*1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.