简体   繁体   中英

Android REQUEST_DENIED Google places API

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM