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/
Related
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.
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.
I am fairly new to Google APIs.
My business purpose is to get a list of hotels in my area.
From the Google API list, I figured that either Google Map Engine API or Google Places API would be ideal.
Google MAP Engine API - was chosen because in the documentation it said that we can access public data.
Google Places API - was chosen because in the documentation it said that we can access places in a locality.
Could anyone help on whether I have chosen the right API? And can my business purpose be achieved using Google APIs?
As far as i know google api v3
if you need to make a web based applicaton to do anything with google map you first need to include javascript api v3.
other apis/libraries sit on top of that
like : Places library (or you say api) , drawing library , overlays , weather etc
https://developers.google.com/maps/documentation/javascript/reference
if you scroll down a bit on contents you will see all the extra libraries there (including the place library which you need) As google says: "The Places API is integrated into the Google Maps JavaScript API as a JavaScript library."
so JUST inlude google javascritp api v3 and you get everything.
https://developers.google.com/maps/documentation/javascript/examples/place-search
use example above and change the type from ['store'] to ['lodging'] to get all the hotels near the lat,lon specified.
I tried to integrate Google map API with android native application. But I got only grid only, I can't get the map. Please help me to solve this problem.
Grids are shown because your key is not correct.Use the true key for your project which is registered in Google Project Console.
If you are getting only grid instead of the map, usually it's Google Maps Authentication problem. To solve it I would suggest you to go over the following guide:
Google Maps API V2 key
Follow all the steps of the guide and reproduce the key.
Next, follow this guide as well:
Google Maps API V2
to create application that integrates Google Maps API V2. Don't forget to remove the current installed application completely because Google Maps V2 caches the key you used before.
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.