google-places-api

How to Implement PlaceAutocompleteFragment and PlaceAutocompleteActivity to get Place details

天大地大妈咪最大 提交于 2019-11-27 01:13:36
I am using Google Place to get place details. Google provide different way to implement Google Place API to get place details.Different way are like PlaceAutocompleteFragment , PlaceAutocompleteActivity . How differentiate these all and how to implement to get place details using Google place API. pRaNaY First of all need to API key and Enable Google Place API to search and get place details. Add your API key to your app manifest ,need to replacing YOUR_API_KEY with your own API key: <application> ... <meta-data android:name="com.google.android.geo.API_KEY" android:value="YOUR_API_KEY"/> <

What is the `sensor` parameter for in the Google Places API?

狂风中的少年 提交于 2019-11-27 00:43:08
The Google Places API requests have a sensor parameter? How does this parameter affect the results? Mano Marks Edit: The sensor parameter is no longer required, and will now be ignored if it's used. The parameter doesn't impact the results. It's a parameter that Google is required to collect for Google's data providers who charge differently based on whether the request uses a sensor or not. see Google docs The Google Maps docs have been updated and as of June 2014 and the &sensor parameter is no longer required for JavaScript or Web Service API calls. The parameter will now be ignored if

Turn AutoCompleteTextView into a SearchView in ActionBar instead

懵懂的女人 提交于 2019-11-26 23:54:59
问题 I have a AutoCompleteTextView which gives user auto-completion search result from Google Places API . Once I was done I discovered SearchView and how it can be placed in the ActionBar . I checked out the SearchView example provided by google and added it to my application as a starting point (it lists the installed applications) but I don´t know how to proceed from here. I want to have the same functionality as AutoCompleteTextView but use the SearchView instead. Any suggestion? The whole

Google Places AutoComplete on iOS - Can't Load Search Results - Try Again

对着背影说爱祢 提交于 2019-11-26 20:58:43
问题 I am posting this here because I don't know where else to post this. Today, our application is no longer returning results for Google Places API. We are seeing the request go through on the Google Developers Console, but all phones are returning no results. This number is climbing for today and each one of these users are stuck in the login / onboarding flow of my app. Update (Closer Image for the last hour): Here is an example flow of what I am seeing on all iPhones we are testing and

Android Google Places API, getAutocompletePredictions returns status 'PLACES_API_ACCESS_NOT_CONFIGURED'

核能气质少年 提交于 2019-11-26 20:46:26
I'm having problems with Android Google Places API - auto complete feature. I use the same key that i used for Android Google Maps API (and in the documentation, it is written this is ok). Here is my definition in manifest: <meta-data android:name="com.google.android.geo.API_KEY" android:value="mykey"/> But getAutocompletePredictions returns 'PLACES_API_ACCESS_NOT_CONFIGURED' message as status. Here is my Java code: GoogleApiClient googleApiClient = new GoogleApiClient.Builder(context) .addApi(Places.GEO_DATA_API) .addApi(Places.PLACE_DETECTION_API) .addConnectionCallbacks(this)

Using initMap and initAutocomplete on same html page google maps

一世执手 提交于 2019-11-26 20:26:46
问题 I have a webpage where I would like to use both place autocomplete as well as google map with marker. User can search for an address in place autocomplete. Lat-long data for marker comes from DB and this doesn't change. The problem is either map works or place autocomplete, but not both, and the issue is related to callbacks. From google docs, I've included both callbacks in separate API calls: <script src="https://maps.googleapis.com/maps/api/js?key=[API KEY]&signed_in=true&libraries=places

Android Place Picker closes immediately after launch

半腔热情 提交于 2019-11-26 20:23:21
I am developing an android application as part of a project, and am using Google places API to display places of interest based on location. I am using the PlacePicker Inentbuilder to accomplish this. However, when the app is run, the place picker launches and then closes immediately (about 1-2 seconds). I have already implemented the below suggestions (that I got from other answers): I have generated the public API key for android applications, and am including this in the meta-data tag in the app manifest. I have enabled the "Google Places API for android" API on the developers console. I

Direction api: check if a place falls in the route path between 2 places

南楼画角 提交于 2019-11-26 20:15:28
问题 I am using Google Direction API to plot the route path between 2 places A and B. I am able to do this. Now, I have a requirement to check if given a place C falls in the route path of A and B. Here is the snapshot of the route path that I have generated from my code. Here is the corresponding code: function initialize() { var input = document.getElementById('searchTextFieldSource'); var input1 = document.getElementById('searchTextFieldDestination'); var autocomplete = new google.maps.places

Get place_id of address_components

故事扮演 提交于 2019-11-26 18:37:14
问题 I am using Google place autocomplete. And I don't know how to get place_id of address_components. In JSON there are only long_name, short_name, types. My code is here: var object_location = document.getElementById('object_location'), autoComplete = new google.maps.places.Autocomplete(object_location); autoComplete.addListener('place_changed', function() { var place = autoComplete.getPlace(); console.log('place = ', place); }); Here is my JSON (picture) I don't need place_id of my place. I

Is it possible to use Maps and place API with same API KEY

China☆狼群 提交于 2019-11-26 18:34:24
问题 I was tiring to build an app which uses google maps for showing places and Pace API for searching places. but it is not being possible to build the app with two different API keys in the manifest. So, I want to Know if it is possible to access both Maps and Place API with the same API key..? or There is some other way for doing this. 回答1: Yes! you can use same key on both of and also you can use only one key for all Google API See below image in listed all google api and see this link. Now