googleplacesautocomplete

GMSPlaceField Error when building - Swift 4.2

烈酒焚心 提交于 2019-12-19 08:30:35
问题 I have an app that's using Google's Place Autocomplete, so I've been following the example code that's been provided. I've added the GooglePlace pod to my podfile and since I'm using the same full-screen control, I'm using their sample code. No error shows until I try to build the project and when I do build, Im getting this error: "Use of undeclared type 'GMSPlaceField'" on line 29 回答1: Update you podfile.. error will be remove 来源: https://stackoverflow.com/questions/54586008/gmsplacefield

How to create a simple google maps address search with autocomplete in flutter and get latitude and longitude?

故事扮演 提交于 2019-12-18 11:42:52
问题 I'm new at Flutter and I'm trying to build a simple google maps app. I've already implemented google maps to the app and it is running perfect. But now I want to add google maps autocomplete and I can't find a simple tutorial or example that is focused on it. I have a TextField and I want to show places and addresses below it according to what the user types. After showing the results, I need to get its latitude and longitude to mark on the map. The code below represents my BottomSheet, that

How long do the new Places API session tokens last?

允我心安 提交于 2019-12-17 10:59:47
问题 I have a website that uses address autocomplete on multiple pages--address book, shipping address, billing address. With the billing changes releasing next month, we can convert the Autocomplete process to use sessions instead of individual keystrokes. (https://cloud.google.com/maps-platform/user-guide/pricing-changes/#billing-changes) How long is an AutocompleteSessionToken good for? The current page? An hour? Twelve? Permanently, with it counting against the limit each time it shows up in a

Places for Android API deprecated alternative

一笑奈何 提交于 2019-12-17 01:11:51
问题 I was trying to implement the Places API. My code looked like this: val builder = PlacePicker.IntentBuilder() startActivityForResult(builder.build(mActivity), PLACE_PICKER_REQUEST) My maps credentials were correct, but for this call I got Places API for Android does not seem to be enabled for your app. See https://developers.google.com/places/android/signup for more details. However, when I tried to enable the "Places API for Android", I got this error. You do not have sufficient permissions

How to fix error with flutter_google_places_autocomplete.dart?

[亡魂溺海] 提交于 2019-12-11 15:59:28
问题 I make an application with Google maps in which you can find a place and build a path to it on the map. I want to show places and addresses below it according to what the user types.After showing the results, I need to get its latitude and longitude to mark on the map. I tried to use a flutter_google_places: 0.2.3 but functions(GoogleMapsPlaces, Prediction) were not defined. Next i used flutter_google_places_autocomplete: 0.1.3 and everything was fine. Unfortunately when i tride to run the

I get error 13 in Place Auto complete Fragment

可紊 提交于 2019-12-11 15:32:48
问题 I am trying to use PlaceAutocompleteFragment but whenever I click on the search bar it just closes it down and goes to onError and shows this as the failure message: error : 13 error : Status{statusCode=ERROR, resolution=null} I am posting the whole Logcat: 11-25 03:43:50.569 2321-2321/com.example.admin.nearbyplaces D/AppTracker: App Event: stop 11-25 03:43:50.687 2321-2321/com.example.admin.nearbyplaces I/zzbz: Making Creator dynamically 11-25 03:43:50.699 2321-2321/com.example.admin

Google Places Api Not working in Android app

戏子无情 提交于 2019-12-11 10:19:14
问题 I was using android's autocompelete for fetching places but now I have just create new play console app for that I didn't get the option for Android Sdk for places rather there is option for places Api only but I am using same code as earlier Places Autocomplete and I am getting and error: Error getting place predictions: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null} I am using following gradle : implementation 'com.google.android.gms:play-services-plus:16.0.0'

How to set language restriction in com.google.android.libraries.places:places:

狂风中的少年 提交于 2019-12-11 08:08:17
问题 I'm setting up this new google places api --> com.google.android.libraries.places:places:1.1.0 but I'm unable to find to set the language for results provided by this api. when I input some keywords it shows result in Local Language "Hindi"(Indian Language) only in few keywords it is doing this but in general it shows normal English results. There is the following keyword on which it shows result in Hindi:- Keyword: "Rohini Sector 11" Output: 244, behind G3S CINEMA HALL, सेक्टर 11, रोहिणी,

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

烈酒焚心 提交于 2019-12-04 02:04:08
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 hash for my app. Now I have the following problem: When I deploy the app onto an Android phone directly

java.lang.IllegalStateException: Places must be initialized

巧了我就是萌 提交于 2019-12-01 18:21:39
问题 I was using the old Place SDK which was working fine But it is going to be depreciated and I move to new place SDK. I got keep the crashing report from a few devices. Crashes Report: Fatal Exception: java.lang.RuntimeException Unable to start activity ComponentInfo{com.islamuna.ramadan/com.google.android.libraries.places.widget.AutocompleteActivity}: java.lang.IllegalStateException: Places must be initialized. SDK version: implementation 'com.google.android.libraries.places:places:1.1.0' Even