0

我无法使用 Google 地图自动完成功能。我已阅读有关此问题的所有文章,但仍然收到 REQUEST_DENIED:

以下服务已开启:

  • 谷歌地图 API v3
  • 地方 API
  • 预测 API

简单的 API 访问:

  • API 密钥:**
  • 推荐人:允许任何推荐人
  • 激活时间:(几天前)
  • 激活者:** – 你

我什至激活了我的信用卡(不知道这是否会对配额下的流量产生影响):

发生以下情况(从浏览器和命令行 cURL 测试):

https://maps.googleapis.com/maps/api/place/autocomplete/json?input=New&types=(cities)&key=$apikey

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

我该如何进行这项工作?

4

1 回答 1

0

文档

必需参数

input — The text string on which to search. The Place service will return candidate matches based on this string and order results based on their perceived relevance. 
sensor — Indicates whether or not the Place request came from a device using a location sensor (e.g. a GPS) to determine the location sent in this request. This value must be either true or false.
key — Your application's API key. This key identifies your application for purposes of quota management. Visit the APIs Console to select an API Project and obtain your key. Maps API for Business customers must use the API project created for them as part of their Places for Business purchase.

我在您的示例请求中没有看到“传感器”。

于 2013-08-28T13:45:46.500 回答