Unsere Anwendung funktioniert perfekt im Morgen, möglicherweise bis die Quote überkommt, aber danach funktioniert es nie an dem Tag. Wir stehen unter dem Fehler.OVER_QUERY_LIMIT Fehler für Google Maps nach 2500 Anfragen
Da wir Premium-Service und registrierten Client für Maps Version 3 verwenden, sieht alles gut aus. Delaying oder Timeout sollte nicht funktionieren, wie es in einer Schleife scheint. Hier
ist der Code:
_resolveInitialLocation: function() {
var url = "https://maps.googleapis.com/maps/api/geocode/json?latlng=" + this._currentLatitude + "," + this._currentLongitude;
if (this._customerAddress) {
url = "https://maps.googleapis.com/maps/api/geocode/json?address=" + this._customerAddress;
}
return xhr(url, {
headers: { "X-Requested-With": null },
handleAs: "json"
}).then(lang.hitch(this, function (place) {
// this._search(place.results[0]);
this._place = place.results[0];
if (dom.byId("pac-input")) {
dom.byId("pac-input").value = this._place.formatted_address;
}
this._currentLatitude = this._place.geometry.location.lat;
this._currentLongitude = this._place.geometry.location.lng;
}));
},
_initGoogleMaps: function (/* Boolean */ preSearch) {
// summary
// this function will initialize google maps api
// tags
// branch locator, google maps, maps
if (this._place) {
this._currentLatitude = typeof this._place.geometry.location.lat === "function" ? this._place.geometry.location.lat() : this._place.geometry.location.lat;
this._currentLongitude = typeof this._place.geometry.location.lng === "function" ? this._place.geometry.location.lng() : this._place.geometry.location.lng;
}
var initialLocation = new
google.maps.LatLng(this._currentLatitude, this._currentLongitude);
.
..
..
};
Bitte beachten Sie die folgenden Fehler wir konfrontiert sind. Wir verwenden Dojo Java Script-Lib.
gibt es eine HTTP-Anfrage get Fehler aus dem googleapis.com:
https://maps.googleapis.com/maps/api/geocode/json?latlng=22.280297,114.159514
{
"error_message" : "You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Console: https://console.developers.google.com/apis/credentials?project=_",
"results" : [],
"status" : "OVER_QUERY_LIMIT"
}
Vielen Dank im Voraus.
Dank GibboK, ist dies die URL wir hitting..https sind:? //maps.googleapis.com/maps/api/js client = GME-abcd & Sensor = false & v = 3 & Bibliotheken = Geometrie, Orte & Callback = initGoogleMaps In URL Ich habe den Firmennamen nur mit abcd geändert. Pls helfen, wenn nichts falsch damit ist. –
@SandipMante Vielen Dank für Ihre Nachricht. Wenn Sie meinen, dass meine Antwort hilfreich war, vergessen Sie bitte nicht, sie zu aktualisieren oder zu akzeptieren, indem Sie den Pfeil nach oben oder den Haken auf der linken Seite verwenden. Danke und fröhliche Codierung! – GibboK