Is the Map Api Key and Google Places Api the same? - android

I hope I don't get a down vote, English is not my first language that is why I get confused by api documentations. I am confused if I need to generate different api keys for "Google Maps Android API" and "Google Places API for Android"
I am asking because I am sucessfully rendering maps from my android app using google maps android api but when I try the using the code of the official google android places api example (PLACE PICKER) it is failing without throwing any errors. It renders the activity properly but when I click the find places button it just returns me to my previous activity with no error. I am guessing it might be an api key issue that is why I am asking if I need two different api keys for this?

No, each service (Google Maps V2 API and Google Places API) have and will generate a different API Key.
But you can't use/declare both keys in your manifest in the same time. When you are using Google Maps and Google Places just use the Google Places API key only (com.google.android.geo.API_KEY), and it will work for both.

Look at this link at android developers
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 your Google Maps Android API v2 apps and your Google Places API for Android apps.

Related

Separate Keys for Google APIs

I am new to using googles API so please excuse me in advance if the question seems stupid.
If my Android Application makes use of Google Places API and Google Maps API do I need to get a separate API Key for both APIs or can we use one key for both APIs?
Thank you
You can use one API Key for both,just you have to enable both API service in library tab in google console.

Google places api's in android

Android Google Places APIs,
How can I show Google Places and my particular places from server side in an Android map view.
please find this link where you need to create your api key and you to use that key in your project https://developers.google.com/maps/documentation/android-api/

Map not showing using Google Maps API for Business

I'm migrating an app from Google Maps Android API v2 to Google Maps Android API for Business following instructions here : https://developers.google.com/maps/documentation/business/mobile/android/config#migrate_an_existing_application
This should be very straightforward but unfortunately after replacing all the com.google.android.gms.maps references to com.google.android.m4b.maps, the app is compiling right but the map is not showing : I get a gray rectangle instead.
One possible reason (and actually one thing I don't understand so far) is that the API key is the exact same as the one I used for Google Maps Android API. Logically, there should be a personal code to enter somewhere, something like the Client ID / Crypto key I've been sent by Google.
Can anyone help me?
From the documentation link below ,
https://developers.google.com/maps/documentation/business/mobile/android/auth
there seems to be a hidden service named "Google Maps Mobile SDK service"
which will be enabled by Google Enterprise Support when you sign up for the Google Map Mobile SDK for Business.
Once we purchase Business licence, enable this service in our project
and generate a Map V2 API key using same procedure for non business version
we should be able to see the tiles loading on Android Device.
Note:This observation is only based on documentation link above and not an experimented one.

Get Google Map V1 Key android

Since last few months I was making an application which incorporates Google Maps, and I was using Google Maps V1 in it. Yesterday I formatted my system, so the key which I was earlier using API V1 for the Google Maps is not working now for the development process.
Now I am trying to make the key for the API v1 again, but I am unable to do so. Can anyone please help me out. Whether I have to shift on Google Map API V2 now ??
I have generated one key using API V2 also. This is also not working. My code is written for Google Maps V1.
Google Maps API v1 is now deprecated so no more keys unfortunately...
Note: Version 1 of the Google Maps Android API has been officially
deprecated as of December 3rd, 2012. This means that from March 18th,
2013 you will no longer be able to request an API key for this
version. No new features will be added to Google Maps Android API v1.
However, apps using v1 will continue to work on devices. Existing and
new developers are encouraged to use Google Maps Android API v2.
from https://developers.google.com/maps/documentation/android/v1/
If you somehow had managed to save a copy of your debug.keystore file.. you need not have to use the Google Maps Android API v2..
Now no other option but to use the new API... Give it a try they have made things easier now.
One good and tricky answer from my side too.
As you have your own key ( but because you do not have the debug.keystore for the previous configuration), so you cant use your key. In this case you can do the below task :
Take the debug.keystore and debug API key for Google maps API V1 from anyone else system who has done google maps v1 and use that key for your development purpose, once it is complete and you have checked it, deploy it with the key which you already have for the application.
Let me know if you have any queries ?

Android Google Maps API key and their stats not appearing

I generated Maps API key for android app using Google's manual via this page. Maps are working but in google console there are no stats. Do you now why and how to fix it?
Solved: As it turned out there are no limits to show maps on Andorid.

Categories

Resources