google-places-api

Google Places Autocomplete - Pick first result on Enter key? [duplicate]

本秂侑毒 提交于 2019-12-30 01:36:47
问题 This question already has answers here : Google maps Places API V3 autocomplete - select first option on enter (17 answers) Closed last year . I'm using a Google Places Autocomplete and I simply want it to select the top item in the results list when the enter key is pressed in the form field and suggestions exist. I know this has been asked before: Google maps Places API V3 autocomplete - select first option on enter Google maps Places API V3 autocomplete - select first option on enter (and

java.lang.IllegalArgumentException: Illegal character in query

房东的猫 提交于 2019-12-30 01:28:04
问题 It seems like this error message has been posted a lot, but I have not been able to come up with the proper answer. I am following this tutorial and I can't get the Google Places Info to show up on my screen. I was looking at the LogCat and saw this: 09-20 02:01:32.278: W/System.err(19832): java.lang.IllegalArgumentException: Illegal character in query at index 127: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.6997688,-86.2406069&radius=1000&sensor=true&types=food

why loading places in iOS using google places api causes lookup place id query error? [duplicate]

末鹿安然 提交于 2019-12-29 08:24:28
问题 This question already has answers here : GooglePlaces API “Response That We Couldn't Understand” Error (2 answers) Closed 2 years ago . detailed error log is given below lookup place id query error: The operation couldn’t be completed. The Places API server returned a response that we couldn't understand. If you believe this error represents a bug, please file a report using the instructions on our community and support page (https://developers.google.com/places/support). Error: The operation

Google Maps API get place text like on iframe map

自作多情 提交于 2019-12-29 08:15:48
问题 So I have found a couple of ways to get maps onto my page, the first version is by using an iframe like so: <iframe src="https://www.google.com/maps/embed/v1/place?key=[APIKEY]&q=place_id:[PlaceID]"></iframe> which gives a marker like the following image with the name of the place next to the marker: However, this isn't perfect as it has that massive white box in the top left and according to many SO posts, you are unable to remove it. So I thought I would try the js route so have the

More than 20 results by pagination with Google Places API

爷,独闯天下 提交于 2019-12-29 07:58:23
问题 Google's demo has this snippet to capture, by pagination, more than 20 results from place search: service.nearbySearch(request, resultList, function(status, results, pagination) { if (status != google.maps.places.PlacesServiceStatus.OK) { return; } resultList.addPlaces(results); if (pagination.hasNextPage) { resultList.button.onClick = pagination.nextPage; } }); I have problems trying to integret this snippet into the following example, another google map example in Github, gmaps-samples-v3:

Google Places iOS - Can't load search result

会有一股神秘感。 提交于 2019-12-29 07:54:31
问题 I am using GMSAutoCompleteViewController from Google Places API in my iOS Project. Suddenly today my GMSAutoCompleteViewController keeps on giving me error "Can't load Search Results". I have regenerated my API Key using fresh one. I have tried everything, but still some how it does not work. I am using Objective-C. Can anyone help ? Code GMSAutocompleteViewController *acController = [[GMSAutocompleteViewController alloc] init]; acController.delegate = self; [self.navigationController

How to get Places.GeoDataApi.getAutocompletePredictions ONLY inside the bounds?

99封情书 提交于 2019-12-29 07:02:08
问题 I am using Places.GeoDataApi for Android and I get different search results depending on the location of the device performing the request. I need the results to be consistently located inside the bounds. I don't see where that could be setup in the getAutocompletePredictions request. Is there anything I am missing? I get address/place autocomplete suggestions using the GoogleApiClient and Places API through: Places.GeoDataApi.getAutocompletePredictions() The method requires a GoogleApiClient

How to get Places.GeoDataApi.getAutocompletePredictions ONLY inside the bounds?

99封情书 提交于 2019-12-29 07:02:07
问题 I am using Places.GeoDataApi for Android and I get different search results depending on the location of the device performing the request. I need the results to be consistently located inside the bounds. I don't see where that could be setup in the getAutocompletePredictions request. Is there anything I am missing? I get address/place autocomplete suggestions using the GoogleApiClient and Places API through: Places.GeoDataApi.getAutocompletePredictions() The method requires a GoogleApiClient

Google places shows blank

ε祈祈猫儿з 提交于 2019-12-29 01:51:10
问题 I want to use google places api but this is now working shows me Request_denied in android app and also in browser . please help following this tutorial for google places http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/ { "debug_info" : [], "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED" } i have generated key as following and overview is this and using this for testing https://maps.googleapis.com/maps/api/place/search/json

AutoCompleteTextView with Google Places shown in ListView just like Uber

落花浮王杯 提交于 2019-12-28 12:45:37
问题 I need to make screen similar to this. I think it has autocompletetextview and listview to display returned results. Google Place API is used here to auto suggest places and listview adapter is updated accordingly. Please any kind of help is appreciated. Thanks in advance. Checked android sample project on AutoComplete for places too. But it is not having any listview to display results. Instead it shows results in autocompletetextview spinner. Any modification we can do with that project