googleplacesautocomplete

AutocompleteSupportFragment not returning results

浪子不回头ぞ 提交于 2021-02-11 08:45:42
问题 Bellow is my code for your reference... I followed this from some example provided in a blog.. SupportMapFragment mapFragment = (SupportMapFragment) this.getChildFragmentManager().findFragmentById(R.id.map); mapFragment.getMapAsync(this); try { Places.initialize(mContext, getString(R.string.google_maps_key)); PlacesClient placesClient = Places.createClient(mContext); // Initialize the AutocompleteSupportFragment. AutocompleteSupportFragment autocompleteFragment = (AutocompleteSupportFragment)

How to use session tokens correctly?

淺唱寂寞╮ 提交于 2020-07-09 12:12:12
问题 I am using the Java client for the Google Places API: <dependency> <groupId>com.google.maps</groupId> <artifactId>google-maps-services</artifactId> <version>0.9.1</version> </dependency> The following is how I use the autocomplete API on my server: public List<AutocompletePrediction> searchAddress(String query) { List<AutocompletePrediction> predictions = new ArrayList<>(); try { AutocompletePrediction[] autocompletePredictions = PlacesApi .placeAutocomplete(geoApiContext, query, null)

How to use session tokens correctly?

夙愿已清 提交于 2020-07-09 12:10:34
问题 I am using the Java client for the Google Places API: <dependency> <groupId>com.google.maps</groupId> <artifactId>google-maps-services</artifactId> <version>0.9.1</version> </dependency> The following is how I use the autocomplete API on my server: public List<AutocompletePrediction> searchAddress(String query) { List<AutocompletePrediction> predictions = new ArrayList<>(); try { AutocompletePrediction[] autocompletePredictions = PlacesApi .placeAutocomplete(geoApiContext, query, null)

How to know if sessionToken was implemented properly?

余生颓废 提交于 2020-04-18 06:04:41
问题 So I'm trying to implement a simple location autocompletion with the google places api. I'm using the autocomplete service for this (see: https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service). What I'm doing right now is, creating an autocomplete token and renewing it if either 3 Minutes ran out (according to How long do the new Places API session tokens last?) or a place detail request was set (according to https://developers.google.com/places/web

How do I increase quotas for Places SDK for Android?

烈酒焚心 提交于 2020-01-22 03:32:08
问题 I am using Google place SDK for android. I want to request more quota limits. Users with an API key are allowed 1 000 requests per 24 hour period. Users who have also verified their identity through the APIs console are allowed 100 000 requests per 24 hour period. A credit card is required for verification, by enabling billing in the console so I have followed the instructions : Google Developers Console Select Project, Expand API & Services , Click the Place SDK for Android, Go To Quota tab

How to implement Google Places Autocomplete per session from SDKs?

a 夏天 提交于 2020-01-02 05:50:06
问题 Is it possible to implement session based autocomplete from the places sdk for Android and iOS apps? According to new Google Maps framework pricing coming into effect June 11th request made to autocomplete can be broken down into keystroke/session based. I haven't been able to find documentation describing implementation steps, except for this reference. 回答1: The session tokens will be available in the new versions of Google Places SDK for Android and Google Places SDK for iOS. These new

Google Places for Android API key does not work on app from Play Store

天大地大妈咪最大 提交于 2019-12-30 06:00:52
问题 I recently launched an Android app which makes use of the Google Places autocomplete widget/API. As part of the configuration for this, I added the API key to my Android's manifest file: <application> ... <meta-data android:name="com.google.android.geo.API_KEY" android:value="MY_KEY_HERE"/> </application> Furthermore, in the Google Developers console, I enabled this API key for Android devices only, but did not restrict to any particular API. I also entered the correct package name and SHA-1

Google places AutoComplete widget is generating a new Session Key per every request

荒凉一梦 提交于 2019-12-30 04:52:12
问题 Recently, Google has updated some billing policies as part of that they've introduced SessionTokens for the Autocomplete requests. As part of that, every request in the same session will be sent the same token in the request and it's automatic if we use the AutoComplete widgets provided by Google APIs. But, I'm seeing a different token generated for every request in the same session. I'm I missing anything, please guide me. Here is the pluker for the sample, there I observed a different token

Google Places API AutocompleteSupportFragment Null pointer Exception

霸气de小男生 提交于 2019-12-23 16:51:11
问题 I am using the Google Places API to get an autocomplete support fragment to get a search bar with location suggestions. I followed the tutorial given here Places Autocomplete This is the XML code <fragment android:id="@+id/autoCompleteFragment" android:layout_width="match_parent" android:layout_height="match_parent" android:name="com.google.android.libraries.places.widget.AutocompleteSupportFragment" /> and this is the Java code // Initialize the AutocompleteSupportFragment.

How to implement google places autocomplete programmatically

99封情书 提交于 2019-12-21 05:23:17
问题 Autocomplete predictions don't show up in my MapsActivity when i type text in AutoCompleteTextView (mSearchText). I tried following the tutorial at the following link: https://www.youtube.com/watch?v=6Trdd9EnmqY&list=PLgCYzUzKIBE-vInwQhGSdnbyJ62nixHCt&index=8. Some methods used in it recently became deprecated, so I checked the documentation at https://developers.google.com/places/android-sdk/autocomplete, especially "Get place predictions programmatically" and "Migrating to the New Places