Are Map Api Key and Google Places Api the same?

Hopefully I won’t get a single vote, English is not my first language, so I got confused in the api docs. I am confused if I need to generate various api keys for the "Google Maps Android API" and the "Google Places API for Android"

I ask because I am successfully viewing maps from my Android application using google maps android api, but when I try to use the google official api example site code (PLACE PICKER), it does not make any errors. It correctly displays the action, but when I click the "Find Places" button, it returns me to my previous action without errors. I assume this might be a key api question, so I ask if I need two different api keys for this?

+5
source share
2 answers

No, each service (Google Maps V2 API and Google Places API) has and will generate a different API key. But you cannot use / declare both keys in your manifest at the same time. When you use Google Maps and Google Places, just use the Google Places API (com.google.android.geo.API_KEY) and it will work for both.

+6
source

Check out this link in the Android Developers section. https://developers.google.com/places/android-api/signup#release-cert

You need an Android API key, not a browser key. You can use the same API key for Google APIs Android API v2 applications and Google Places apps for Android applications.

+1
source

Source: https://habr.com/ru/post/1245416/


All Articles