google-places-api

Google autocompleter place doesn't work in the Child Component in Angular 2

寵の児 提交于 2019-12-06 01:16:14
问题 I was using the googleplace directive for the Google places autocompletor. It works when I use this directive in AppComponent as shown in the link but doesn't work when I used it in the child Components. app.routes.ts import { provideRouter, RouterConfig } from '@angular/router'; import { BaseComponent } from './components/base/base.component'; import { DashboardComponent } from './components/dashboard/dashboard.component'; const routes: RouterConfig= [ {path:"",redirectTo:"/admin",pathMatch:

What format does the Google Places Photos API return the image in?

你说的曾经没有我的故事 提交于 2019-12-06 01:04:59
Have a look at this API: https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU&key=AddYourOwnKeyHere When you invoke it using Postman, or in a browser, it returns an image which is rendered beautifully. Now, from inside an app, when I use $http or jQuery to call this API, what is returned is LOTS of "garbage". Can anyone explain what this garbage is? Is it base64

Place Autocomplete Error while autocompleting: OVER_QUERY_LIMIT

余生长醉 提交于 2019-12-06 00:42:15
问题 When I try to search at Place Autocomplete I got Can't Load Search Results and the logs say "Error while autocompleting: OVER_QUERY_LIMIT" I have enabled https://console.cloud.google.com/ and API key works well. Java Code String apiKey = "MY API KEY"; private RadioGroup mRadioGroup; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_costumer_map); // Obtain the SupportMapFragment and get notified when the map is

Google Maps Address Components Geocoding vs Places API - Short vs Long Name

ⅰ亾dé卋堺 提交于 2019-12-06 00:08:18
Hey there GMaps API developers. To start - what an incredible product and service the Google Maps/JS API v3 is - thank you so much! Now, with that important bit of sincere gratitude out of the way... The short_name vs long_name options for address components is a nice feature, but for each service these two attributes mostly contain the same values, except geocode has what I would expect for short_name for both and places has what I would expect for long_name for both! *tears* Before Places library came out I just assumed that Google didn't actually have short/long versions for street name,

Android Google Place Picker working in Signed APK but not working in Live app

六月ゝ 毕业季﹏ 提交于 2019-12-05 21:36:48
I have an application in which i have used Google Place Picker. There is very strange issue i am facing. When i am creating signed APK with my app's keystore, Place Picker is working very well. That same APK I have uploaded over Google PlayStore. When I come to open that Place Picker it automatically closed down. I already read a lots of comments online and also here in SO. But I can not determine why its working well in signed APK and the same APK which is over Google PlayStore is not working. When i checked logs of LIVE application of Google PlayStore it giving error like this : Volley :

Where do I find the Google Places API Client Library for Python?

ぐ巨炮叔叔 提交于 2019-12-05 17:46:24
It's not under the supported libraries here: https://developers.google.com/api-client-library/python/reference/supported_apis Is it just not available with Python? If not, what language is it available for? Andre's answer points you at a correct place to reference the API. Since your question was python specific, allow me to show you a basic approach to building your submitted search URL in python. This example will get you all the way to search content in just a few minutes after you sign up for Google's free API key. ACCESS_TOKEN = <Get one of these following the directions on the places

Error use unresolved identifier GMSPlacePickerConfig & GooglePlacePicker? (Google Places 2.0)

[亡魂溺海] 提交于 2019-12-05 16:38:29
Error use unresolved identifier GMSPlacePickerConfig & GooglePlacePicker? (Google Places 2.0) import GoogleMaps import GooglePlaces are already declared on top. Here Now, google has broken it into multiple frameworks. You need to add a new pod 'GooglePlacePicker'. abielita I don't see any error on your code based on this sample code . If you are using cocoapod , you need to add pod 'GooglePlaces'. Error Use of unresolved identifier usually occurs when your new class has a different Target(s) from the other one. You can check it in this SO question . It might have a testing target and the other

How to change placeholder text in an autocomplete activity of android google place?

谁说我不能喝 提交于 2019-12-05 15:33:36
I am using Option 2: Use an intent to launch the autocomplete activity Is it possible to change the "search" place holder text to something such as "enter your city". I found a solution but for javascript, suppose support android as well. It seems it could be done with a PlaceAutocompleteFragment , but I am using my own EditText to launch autocomplete by using an intent, so it is not helpful. No there is no way and if you want than you have to create your own. But as u use the EditText(mention in Comment Section) so may be this technique is useful for your. Code: PlaceAutocompleteFragment

How to remove search icon from PlaceAutocompleteFragment in Android

浪子不回头ぞ 提交于 2019-12-05 15:17:05
I am using PlaceAutocompleteFragment to search places. Below is my xml code <fragment android:id="@+id/place_source" android:layout_width="match_parent" android:layout_height="40dp" android:background="@color/colorPrimary" android:name="com.google.android.gms.location.places.ui.PlaceAutocompleteFragment" /> I want to remove search icon which by default comes with fragment. You can use this single line to get the reference of search icon : ((View)findViewById(R.id.place_autocomplete_search_button)).setVisibility(View.GONE); and this line to get the reference of EditText: ((EditText)findViewById

Google Places AutocompleteService filtering by country

£可爱£侵袭症+ 提交于 2019-12-05 14:21:48
问题 I'm setting up a custom autocomplete field where I show locations from Google Places and events from my database that match the search query. For this reason, I'm using the Google Places Autocomplete Service to get the query predictions rather than plugging in the Places Autocomplete directly into my textfield. The problem is I can't figure out how to filter Places Autocomplete suggestions by country using the AutoComplete service. I've tried: var service = new google.maps.places