-1
私はGoogleのシートで、次のスクリプトを使用して」:サービスが1日に何回も呼び出されました:ジオコード。 (ライン24)
function reverseGeocode(addressType, lat, lng) {
Utilities.sleep(1500);
if (typeof addressType != 'string') {
throw new Error("addressType should be a string.");
}
if (typeof lat != 'number') {
throw new Error("lat should be a number");
}
if (typeof lng != 'number') {
throw new Error("lng should be a number");
}
var response = Maps.newGeocoder().reverseGeocode(lat, lng),
key = '';
response.results.some(function (result) {
result.address_components.some(function (address_component) {
return address_component.types.some(function (type) {
if (type == addressType) {
key = address_component.long_name;
return true;
}
});
});
});
return key;}
を、私はエラーを取得する:ジオコード:サービスは、1日に何回も呼び出さ。 (24行目)誰かが解決策を知っていますか?
ペイ代わりに無料版を使用してのサービスのために?あなたは無料で1日当たり2500件のリクエストを受け取ります - あなたは何人を作っていますか? – stdunbar
キーが必要です(現在)、あなたはどのようにあなたに入りますか?本当の鍵を使っていますか? – geocodezip
ここに投稿する前に、最小限の調査をしてください。エラーそのものが何が間違っていて、簡単なグーグル・グーグルが答えを見つけるだろうと言います。 –