Skip to content

Commit de0c1fb

Browse files
committed
solve error 'OVER_QUERY_LIMIT'
1 parent 81f12b9 commit de0c1fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/locationpicker.jquery.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
var address = GmUtility.addressByFormat(results, gmapContext.settings.addressFormat);
111111
gmapContext.locationName = address.formatted_address;
112112
gmapContext.addressComponents = GmUtility.address_component_from_google_geocode(address.address_components);
113+
}else if (status == google.maps.GeocoderStatus.OVER_QUERY_LIMIT) {
114+
return setTimeout(function () {
115+
GmUtility.updateLocationName(gmapContext, callback);
116+
}, 1000);
113117
}
114118
if (callback) {
115119
callback.call(this, gmapContext);

0 commit comments

Comments
 (0)