用于地理编码的地图API密钥不再起作用了? [英] Maps API keys for geocoding not working anymore?

查看:380
本文介绍了用于地理编码的地图API密钥不再起作用了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎Google API控制台中生成的密钥不再有效。使用不同的密钥(尝试使用服务器和浏览器密钥,但服务器密钥是我需要的密码),从不同的帐户生成我经常遇到以下错误:



错误当使用服务器密钥时:

  {
error_message:此站点或IP未被授权使用此API ,
results:[],
status:REQUEST_DENIED
}

使用浏览器键时出错:

  {
error_message:提供的API密钥已过期。,
results:[],
status:REQUEST_DENIED
}

以下是此帐户/项目启用的服务: http://upload.uprise.nl/et2j



这是我想要的网址: https://maps.googleapis.com/maps/api/geocode/json?address=900+Maple+Avenue%2C+L7S+2J8+Burlington+% 28 $%$ 29 $ 2C $加拿大& oe = utf8& sensor = false& key = mykey

没有钥匙,它一直工作,直到我达到我的每日限额(导致OVER_QUERY_LIMIT状态)。



是否有更多人遇到这种情况? >

地理编码目前不是通过开发者控制台提供的服务之一,这就是密钥无效的原因(请注意,地理位置与地理编码不同)。



目前,您需要使用客户端地理编码(例如在JS Maps API中) - 或者购买更多的服务器端地理编码以及用于营业执照的地图,以便增加此配额。



它说密钥已过期的事实是误导性的,我会为此提出一个错误。

编辑/更新:地理编码服务现已有效能够通过开发者控制台。

It seems that the generated keys in the Google API's console are not working anymore. With different keys (tried it with both server and browser key, however the server key is what I need), generated from different accounts I get constantly the following errors:

Error when using server key:

{
   "error_message" : "This site or IP is not authorized to use this API key.",
   "results" : [],
   "status" : "REQUEST_DENIED"
}

Error when using browser key:

{
   "error_message" : "The provided API key is expired.",
   "results" : [],
   "status" : "REQUEST_DENIED"
}

And these are the enabled services on this account/project: http://upload.uprise.nl/et2j

This is the URL I'm trying: https://maps.googleapis.com/maps/api/geocode/json?address=900+Maple+Avenue%2C+L7S+2J8+Burlington+%28Ontario%29%2C+Canada&oe=utf8&sensor=false&key=mykey

Without the key it is working until I reach my daily limit (which causes the OVER_QUERY_LIMIT status).

Are more people experiencing this?

解决方案

Geocoding is not one of the services available through the developer console at this time, which is why the key does not work (note that geolocation is not the same as geocoding).

Currently you'd need to use client side geocoding (for example in the JS Maps API) -- or purchase more server side geocoding with a maps for business license in order to increase this quota.

The fact it says the key is expired is misleading, and I'll file a bug for that.

EDIT/UPDATE: The geocoding service is now available through the developer console.

这篇关于用于地理编码的地图API密钥不再起作用了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆