gpt4 book ai didi

google-app-engine - 谷歌地理编码 API - REQUEST_DENIED

转载 作者:太空宇宙 更新时间:2023-11-03 15:17:23 26 4
gpt4 key购买 nike

显然我不需要“ map API key ”来使用“Google Geocoding API”:

http://code.google.com/apis/maps/documentation/geocoding/index.html

但是,我得到了这个:

{
"status": "REQUEST_DENIED",
"results": [ ]
}

这是否意味着我的 IP 被阻止了?我可以做些什么来克服这个问题?

最佳答案

直到 2014 年底,此错误的一个常见来源是从请求中省略了强制性的 sensor 参数,如下所示。但是从那以后就不再需要了:

The sensor Parameter

The Google Maps API previously required that you include the sensor parameter to indicate whether your application used a sensor to determine the user's location. This parameter is no longer required.


您是否在请求中指定了sensor参数?

"REQUEST_DENIED" indicates that your request was denied, generally because of lack of a sensor parameter.

sensor (required) — Indicates whether or not the geocoding request comes from a device with a location sensor. This value must be either true or false

关于google-app-engine - 谷歌地理编码 API - REQUEST_DENIED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3212550/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com