且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google 地理编码 API - REQUEST_DENIED

更新时间:2023-01-03 19:08:29

直到 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