Search code examples
androidgoogle-maps-api-2

Google places api does not work after using google map api v2


As google has updated its map api, i have implemented this new Google Maps api V2. My map appears in my app but places are not shown on my android map. when i debug my code, at one point in my code it said "access denied" for places api. I have used my new map api key in places api code.

Can anyone guide me in this regard?


Solution

  • I just looked into my code and found out the following:

    I use a different key for the Google Places calls. It is not the Google Maps key. In the Google API console on the page "API Access" it is called

    Key for browser apps (with referers)

    I append this key to the URL of my Places API calls. These calls are done over HTTP. I am not sure if there is a different way to get the places.

    Try to generate this kind of key and use this for your app.