google-places-api

How to get 20+ result from Google Places API?

六眼飞鱼酱① 提交于 2019-11-26 17:58:57
问题 I am developing a app in which i am getting the list of ATM's near by the user. For that i am using Google Places API, but every time it returns 20 result only. I want to get more results. In the API doc it is mention that it will return 20 result but i would like to know that is there any way i can get more data or I have to create my own database for that? Also what i found in the API is that it does not have all the ATM's for India. The information is also not accurate for some of the

How to get a click event when a user clicks a (business) place on the map

 ̄綄美尐妖づ 提交于 2019-11-26 16:35:23
I know how to set a click event on a map, and it works fine when clicking random locations. But when I click a business place, Google Maps will display the balloon containing the information about the business, but not raise the click event to my JavaScript. You can see this happing on this geocoding demo ( http://rjshade.com/projects/gmaps-autocomplete/ ). Browse the map to some city and click a random location: the address is displayed in the text box (Hurray!). Now find some business place and click that: the map pops up the balloon, but no click event is sent to the JavaScript to update

Google Places API request denied for Android autocomplete, even with the right api key

大兔子大兔子 提交于 2019-11-26 16:11:26
I'm trying to make an Autocomplete field which should fetch cities as the user types, by using the Google Places API as described in this tutorial: https://developers.google.com/places/training/autocomplete-android You've probably found this question around many times before as I did, but none of the answers helped me. Here are the things you should know: The URL is https://maps.googleapis.com/maps/api/place/autocomplete/json?sensor=false&key=myKey&components=country:ro&input=whatTheUserTypes Please don't reply by saying you replaced the API key with your own and it worked - the API key which

Autocomplete in SearchBox does not work even in official example

北战南征 提交于 2019-11-26 14:52:49
问题 Today I've noticed that autocomplete in SearchBox does not on my service and when I was checking official example from Google it did not work even there. https://developers.google.com/maps/documentation/javascript/examples/places-searchbox Does anyone know what's happening? >) UPDATE This bug was handled in issue tracker https://issuetracker.google.com/issues/74048143. It was marked as Fixed in version 3.32 on March 2, 2018. 回答1: Using the previous version of the Google Maps API worked for me

Inconsistent language in Google Place Details API

北城以北 提交于 2019-11-26 14:03:13
问题 I'm using Google Place Details API on my server to store information about a place, using the placeId sent by a client. I'm facing an issue regarding the language of the result, which differs when the place is a city or an address in that city, even when the language is specified in the query. For example: The place id ChIJ53USP0nBhkcRjQ50xhPN_zw is the city of Milan, and the API returns Milan as locality and Lombardy as administrative area (English names) The place id

REQUEST DENIED with Google Places API KEY for Server Web used in an Android application

♀尐吖头ヾ 提交于 2019-11-26 12:48:08
问题 I\'m trying to get info from the API of Google Places for an Android application. To do that, first I have enabled this API in my Google Account. Second, I have created an API KEY for Browser. I already have an API KEY Server due to another API. So, in my code I have been tested with these two Keys and with both I\'ve got always the same result!!! { \"error_message\" : \"This service requires an API key.\", \"html_attributions\" : [], \"results\" : [], \"status\" : \"REQUEST_DENIED\" } The

using enableAutoManage() in fragment

给你一囗甜甜゛ 提交于 2019-11-26 12:42:51
问题 Is there another way to connect Google API client? I use auto complete places and I have to use this code some where in MYFRAGMENT mGoogleApiClient = new GoogleApiClient.Builder(MainActivity.this) .addApi(Places.GEO_DATA_API) .enableAutoManage(this, GOOGLE_API_CLIENT_ID, this) .addConnectionCallbacks(this).build(); My problem with enableAutoManage(this, GOOGLE_API_CLIENT_ID, this) .addConnectionCallbacks(this).build(); I can\'t deal with it because when I replace this with getActivity() I

Request main road / curbside StreetView panoramas instead of back alleys from API

做~自己de王妃 提交于 2019-11-26 12:31:30
问题 Is there a way to request main road Google StreetView panorama data instead of back alley panorama data for a given location (latitude/longitude)? I\'m using the Google Maps Javascript API to retrieve a street view panorama from a home address supplied by our users. It works quite well for most addresses I\'ve tried, but I\'m noticing a lot of properties in California also have street views for back alleys, and the API seams to be consistently returning the back alley panorama instead of the

What is the `sensor` parameter for in the Google Places API?

走远了吗. 提交于 2019-11-26 12:24:43
问题 The Google Places API requests have a sensor parameter? How does this parameter affect the results? 回答1: Edit: The sensor parameter is no longer required, and will now be ignored if it's used. The parameter doesn't impact the results. It's a parameter that Google is required to collect for Google's data providers who charge differently based on whether the request uses a sensor or not. see Google docs 回答2: The Google Maps docs have been updated and as of June 2014 and the &sensor parameter is

Using Google Places API in Android

左心房为你撑大大i 提交于 2019-11-26 12:09:20
问题 I am trying to develop an app which can display the schools and airports in the locality. I found that using Google Places API is the way to go. I have seen the documentation here... Can anyone explain how to use the API? 回答1: New tutorial available It appears that the original tutorial by Brian is now 404, so here is a link to the Google one in case people see this answer first. https://developers.google.com/places/android-api/current-place-tutorial When this article was first written this