How to use Google MapView in android apllication? - android

I am trying to use MapView provided by Google API. I am not able to import the package i saw in google page we need to get a key for using google API do anyone know how to use Google API.
Thanks in advance...

Read this blog entry. There it is explained how to setup and use the map API of Google. The API key is free.

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.

Integrate google map android

I'm developing an app and I'm trying to integrate to my app a google map. I'm reading that I need to create a special app at the beggining. I tried to ignore it and tried to integrate it anyway. But when I try to extend my class with MapActivity, it doesn't find it. I generated the Key, Google Play Service is up to date. I probably miss something.
Thanks for the help.
MapActivity was part of the Google Maps Android v1 API which is now deprecated.
Use MapFragment if possible
https://developers.google.com/maps/documentation/android-api/
You need the new integration in Google map you want to use the new Google map api in android.
So follow below link for integration google map with "MapFragment".
http://www.tutorialspoint.com/android/android_google_maps.htm

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/

Google map api shows grid

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.

How to show suggestion list on google map search?

I want to show suggestion list same as google maps application.
I found some api on google developer site but they dont return same result as google maps application.
https://developers.google.com/places/documentation/search#PlaceSearchRequests
check this screen shot for more.
Its finding using current location, my location is jaipur,rajasthan,india.
You need to use third party library API for this. FourSuqare provides the most efficient and largest database of location based API for this. IT uses type ahead. I would recommend to use their iOS SDK or Android SDK.
The also offer REST web services. Here is a complete documentation for the same.
What you are looking for is this API
You can use a handy library that utilizes the Google Places autocomplete API ... or you can "inspire" from here... https://github.com/chenyuan/SPGooglePlacesAutocomplete
The result:

Categories

Resources