Google 地理编码 API - REQUEST_DENIED [英] Google Geocoding API - REQUEST_DENIED

查看:31
本文介绍了Google 地理编码 API - REQUEST_DENIED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然,我不需要Maps API 密钥"来使用Google Geocoding API",根据:

Apparently I do not need a 'Maps API key' to use the 'Google Geocoding API' according to:

http://code.google.com/apis/maps/文档/地理编码/index.html

但是,我得到了这个:

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

这是否意味着我的 IP 被封锁了?我该怎么做才能克服这个问题?

Does this mean that my IP is blocked? What can I do to overcome this?

推荐答案

直到 2014 年底,此错误的一个常见来源是从请求中省略了必需的 sensor 参数,如下所示.但是从那时起就不再需要这样做了:

Until the end of 2014, a common source of this error was omitting the mandatory sensor parameter from the request, as below. However since then this is no longer required:

传感器参数

Google Maps API 之前要求您包含传感器参数以指示您的应用程序是否使用传感器来确定用户的位置.不再需要此参数.

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"表示您的请求被拒绝,通常是因为缺少传感器参数.

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

sensor(必需)— 指示地理编码请求是否来自带有位置传感器的设备.该值必须为真或假

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 地理编码 API - REQUEST_DENIED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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