Android的REQUEST_DENIED谷歌的地方API地方、Android、REQUEST_DENIED、API

2023-09-07 15:39:31 作者:一个人一座城一段伤

我对Android的谷歌地图应用程序,但查询字符串工作我使用的,要接近用户不能正常使用的地方结果。

I am working on Android Google maps application but the query string i am using to get results of places near by the user is not working.


http://maps.googleapis.com/maps/api/place/search/json?location=123.666,33.166&radius=50000&sensor=false&types=establishment&name=hotel&key={myKey}

我使用这个链接来获得地图API密钥。

下面是我收到的反应。

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

感谢

推荐答案

您需要生成通过邻居API密钥: 的https://$c$c.google.com/apis/console/

You need to generate the Places API key via: https://code.google.com/apis/console/

更多关于此下: https://developers.google.com/places/documentation/#Authentication

心连心