Getting results of nearby places from User’s Location using Google Maps API in Android

For Android, I tried to use Place picker for Android. It can add the built-in place picker UI widget to your app, so users can choose from a set of nearby places displayed on a map. It easy to use, you just need to do is: int PLACE_PICKER_REQUEST = 1; PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder(); … Read more

Using initMap and initAutocomplete on same html page google maps

You can’t add multiple callbacks (and you shouldn’t include the API more than once). Put all the code in a single callback. <script src=”https://maps.googleapis.com/maps/api/js?key=[API KEY]&signed_in=true&libraries=places&callback=initialize” async defer></script> function initialize() { initMap(); initAutoComplete(); } or see this example in the documentation function initialize() { initMap(); initAutocomplete(); } var map, marker; function initMap() { map = new … Read more

Android Place Picker closes immediately after launch

Francois Wouts’ solutions helped answer this. Thank you Francois… I searched the logs with keyword ‘Places’ and found that Places API was indeed throwing an exception. It expected the com.google.android.geo.API_KEY within the <application> tags in the Manifest.xml. I had changed to com.google.android.geo.API_KEY in the <activity> tag and not the one in the <application> tag. Now … Read more

ApiException: 9003: PLACES_API_ACCESS_NOT_CONFIGURED

Many friends suggested me to post how I have implemented this(AutoComplete) on my Project .So I am suggested you to see this migration guide and implement on your project step by step. Migration Guide:-https://developers.google.com/places/android-sdk/client-migration GO to this link to create API Key: Follows this steps to implement AutoComplete in your project :- There is two … Read more

Places for Android API deprecated alternative

Google Places SDK for Android is Deprecated, so we need to migrate for Places API. For implementing AutoComplete Place using new Places API.. please follow below steps. First enable PlacesAPI in developer console, then install Client Library by updating in gradle. (Note: You can only install either the client library or the compatibility library, NOT … Read more

This IP, site or mobile application is not authorized to use this API key

I had the same issue and I found this. On the url, it requires the server key in the end and not the api key for the app. So Basically, you just add the server key in the end of the URL like this: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=yourlatitude,yourlongitude&radius=5000&sensor=true&key=SERVERKEY Now, to obtain the server key, just follow these steps: … Read more