google-places-api

google places search api and “Listings by” Text

邮差的信 提交于 2019-12-06 09:21:06
i have a problem with the Google Map and the places search API. Everytime i run a new search Google adds the Text "Listings by blabla" on the map. If i run multiple Searches, the API adds multiple Elements with this texts on the map. Look at the lower right corner: http://s14.directupload.net/images/141016/raq2cfah.jpg How can i remove this layer, so that only one of this elements is on the map? The issue is because the Text "Listing by bla bla" is added every time you create a new instance of google.maps.places.PlacesService. To resolve this make sure that only one instance of the

Wrap Google Places Autocomplete Service through jQuery UI Autocomplete feature

半世苍凉 提交于 2019-12-06 09:14:15
问题 I am trying to use jQuery UI Autocomplete feature in order to make a wrapper of Google Autocomplete Service(because I just want to restrict some of the results returned by Google in a manner that is not possible through Google API). Suppose I have this code: $("#address").autocomplete({ source: function(request, response){ autoCompleteService = new google.maps.places.AutocompleteService(); autoCompleteService.getQueryPredictions({input: request.term }, autocompleteCallback); //I should

Does Google ever remove a place from it's API or re-use the placeId? [closed]

╄→гoц情女王★ 提交于 2019-12-06 09:03:51
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . In Google Places, each place has a specific placeId. We store this placeId and use it to retrieve information about the place as needed. For this approach to work, we need to confirm: Is each placeId unique? Does Google ever re-use a placeId? Does Google ever delete a place from

custom google map add place card

耗尽温柔 提交于 2019-12-06 08:54:53
问题 i have created custom google map using php. it shows marker, location and info window. it works fine without any issue. i want to add place card in it. check below screenshot. How can i display Place card on my custom map. i tried following code to display custom location. <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script> <script> var saveWidget; function initialize() { var myLatlng = new google.maps.new google.maps.LatLng(-34.397, 150.644); var mapOptions

The query limit on the Places API web service is different from the JS limit

南楼画角 提交于 2019-12-06 08:46:28
I was developing an application which uses the places API through the Javascript Library ( https://developers.google.com/maps/documentation/javascript/places ), and although I was making hundreds of searches with it at any given time, I never seemed to go over the limit. I've decided to move the search aspect of my application to the server-side, though, because I was developing a mobile version and didn't want mobile browsers doing 100+ requests at a time. So, I switched to using the Web Service API ( https://developers.google.com/maps/documentation/places/ ) In doing so I seem to be going

Angular - Google places directive isn't being triggered when the input value changes

こ雲淡風輕ζ 提交于 2019-12-06 08:41:30
I'm trying to write a google place directive since all the finished ones doesn't seem to work very well or have a code base that is just horrendous. So here is my attempt which is clean but it isn't activating when the user types something: @Directive({ selector: '[googlePlace]' }) export class GoogleplaceDirective implements OnInit { @Output() placeChange: EventEmitter<any> = new EventEmitter<any>(); public autocomplete: any; constructor(private elementRef: ElementRef) {} ngOnInit() { this.autocomplete = new google.maps.places.Autocomplete(this.elementRef.nativeElement, {}); google.maps.event

Get country code from PlaceAutocompleteFragment android (Google Places API)

限于喜欢 提交于 2019-12-06 07:28:12
问题 In Google Places API for Android, I am using PlaceAutocompleteFragment for displaying the city/country. Here am getting the address, name, placeId, etc. Place object contains only these fields. @Override public void onPlaceSelected(Place place) { Log.i(TAG, "Place Selected: " + place.getName()); // Format the returned place's details and display them in the TextView. mPlaceDetailsText.setText(formatPlaceDetails(getResources(), place.getName(), place.getId(), place.getAddress(), place

Google Places API - downloading user reviews and star ratings

扶醉桌前 提交于 2019-12-06 07:09:39
问题 TL;DR - I need help using Google Places API to download star ratings and user reviews of multiple stores and I am too dumb to figure out what I am suppose to be doing. Please help! For the life of me, this has been hard to find any sort of useful info or documentation in terms of trying to download user ratings and star reviews from multiple locations. Just to give you a bit of info, I work for a company that has three major brands with over 500 stores across the country. We have multiple

OnPlaceSelectedListener of SupportPlaceAutocompleteFragment not fired inside ViewPager

两盒软妹~` 提交于 2019-12-06 06:09:51
问题 My application has and activity with a viewPager and 4 fragments. In one fragment I added a google SupportPlaceAutocompleteFragment and public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.area_swipe_fragment, container, false); SupportPlaceAutocompleteFragment autocompleteFragment = (SupportPlaceAutocompleteFragment) getChildFragmentManager().findFragmentById(R.id.place_autocomplete_fragment);

Alternative to google place api? [closed]

旧城冷巷雨未停 提交于 2019-12-06 05:48:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I'm developing an iphone app that is using Google Place API. As far as I know, Google allows 1000 queries per 24 hour for this Place API, and 100,000 queries per 24 hour if the account is verified with a credit card. Exceeding 100,000 queries per 24 hour will incur extra charge. I'm asking if there is any another