Android REQUEST_DENIED Google places API

假装没事ソ 提交于 2019-12-12 05:38:49

问题


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}

I am using this link to obtain a Maps API key.

here is the response i am receiving.

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

Thanks


回答1:


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

More on this under: https://developers.google.com/places/documentation/#Authentication

HTH




回答2:


I'm quite sure you are using a wrong/old key. Lokk at your link, it's over 3 years old. Better try this way to obtain a new key: Obtaining a Google Maps Android API Key. This is the official site.



来源:https://stackoverflow.com/questions/13112791/android-request-denied-google-places-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!