Batch requests for Google Places (Javascript v3) -
is there way batch requests places library in javascript? i've seen this page, i've gathered it's possible, @ least, i'm not sure how it'd work places api.
i need run request every place find on google maps (this leads lot of over_query_limit exceptions). i've given thought queuing requests , running them second apart, if user gets several hundred places queued up, fair amount of results going go missing if user closes page preemptively.
i'd rather not defer processing server in case if possible.
well, here solution in javascript:
var intid = setinterval(function() { try { service.getdetails(place, getmoreplacedetails); clearinterval(intid); } catch(e) { console.info("could not detailed information "+place.name+"; retrying in 3..."); } }, 3000);
every place threw exception when tried more details retried in 3 seconds.
Comments
Post a Comment