google-places-api

Obtaining more than 20 results with Google Places API

我只是一个虾纸丫 提交于 2019-11-28 19:48:48
问题 I want to develop a map application which will display the banks near a given place. I use the Places library to search and everytime it just return 20 results. What should I do if I want more results? 回答1: UPDATE : Since I originally wrote this answer, the API was enhanced, making this answer out of date (or, at least, incomplete). See How to get 20+ result from Google Places API? for more information. ORIGINAL ANSWER : The documentation says that the Places API returns up to 20 results. It

ApiNotActivatedMapError for simple html page using google-places-api

左心房为你撑大大i 提交于 2019-11-28 16:47:51
I'm trying to create a simple html page (I'd later like to add an autocomplete input there) that include google-places-api. I have an api-key (which is enabled) but I still get an error message. Here is my html- <head> <meta charset="utf-8"> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MY_KEY&libraries=places"></script> <title>test</title> </head> <body> </body> but I get this error message- and in the console I get - Google Maps API error: Google Maps API error: ApiNotActivatedMapError I can't understand what the problem is.. Appreciate anybody's help To

Google places API - popular times [closed]

孤人 提交于 2019-11-28 16:31:21
Does anybody know if Google expose the new 'Popular times' information in the places API? and if not is there another API I can use to get a locations popularity? Yuri Eastwood As of now (2016-12-15), no, as can be found at https://developers.google.com/places/web-service/details#PlaceDetailsResults . There's no other API for that information. You could use the API ratings return to do something alike, but still not the same. You can track the existing requests for the feature (and star & bump it) at https://issuetracker.google.com/issues/35827350 . 来源: https://stackoverflow.com/questions

Detect the nearest transit stop from the given location

会有一股神秘感。 提交于 2019-11-28 15:28:28
I need to get all the nearby public transit information within certain distance from a given location. The type of public transit can be either bus, train, etc.. Here is what I meant: If I use Google Map to query "Transit Stop near a Location (e.g. Bugis Street Singapore)" , then it will return us all the nearby Transit Stop that I want. Like the one shown in the picture. But I need its API to get those details out. (such as bus service No, bus stop ID, etc. as shown in the picture). But I couldn't found any. Here is what I've tried I have tried using the Google Map Nearby Place API to search

Why Google places API key not works?

梦想的初衷 提交于 2019-11-28 14:48:43
I want to use Places API for show near by location.I have added service for it and use below url. https://maps.googleapis.com/maps/api/place/search/json?location=22.7253,75.8655&radius=500&sensor=true&types=bar&key=mykey It returns the following error. { "error_message" : "This IP, site or mobile application is not authorized to use this API key.", "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED" } It looks like you try to use Web Service, not Places API for Android. In this case you cannot apply an API key with Android app restriction. Web Service requires a different API

can I change the result language of Google Places API for iOS?

纵饮孤独 提交于 2019-11-28 14:28:39
I am using Google Places Api for iOS(GMSAutocompleteFilter) to search nearby places, if I set English(US) as my system language, it will return Traditional Chinese results(which is acceptable since I am in taiwan). but if I set Traditional Chinese as my system language, the api will return simplified Chinese results(what is the logic behind?) How can I change the language of api search results? - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { GMSAutocompleteFilter *filter = [[GMSAutocompleteFilter alloc] init]; // filter.type =

Google maps - Weird geometry.location attributes (G, K)

二次信任 提交于 2019-11-28 14:26:59
When I access the Places API, Google sends back an object with, among other things, these two properties : location.geometry.G location.geometry.K These represent the latitude and longitudes. I never read about these anywhere. Besides, all my codebase recently became unstable because it recently changed for the letters H & L. This is weird, isn't it ? What did I miss ? Those are undocumented properties of the API (the latitude and longitude of that particular google.maps.LatLng object) Access them reliably by using the documented methods ( .lat() , .lng() ) 来源: https://stackoverflow.com

Google places shows blank

℡╲_俬逩灬. 提交于 2019-11-28 14:21:55
I want to use google places api but this is now working shows me Request_denied in android app and also in browser . please help following this tutorial for google places http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/ { "debug_info" : [], "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED" } i have generated key as following and overview is this and using this for testing https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=5000&types=food&name=harbour&sensor=false&key=AIzaSyBLW2RsxQuoZme

How to get place description from Google Places API

北城以北 提交于 2019-11-28 13:32:38
I am trying to use the Google places API to get information on certain places. I have an example from Google search: here of what I am trying to find. I thought that the "types" field of the Places API text search would contain it, but this text appears to be different and not within the provided list of options. If anyone can provide some info on where this comes from and how to obtain it, it would be much appreciated. Thanks Currently you cannot obtain this data via Places API. There is a feature request in Google issue tracker to make the detailed business type available in Places API,

Google Places API for Android Place Picker Does not work

有些话、适合烂在心里 提交于 2019-11-28 13:23:20
I am unable to use the Place picker in my app. The API worked then just stopped one day with no explanation.The picker shows up for a very short period of time then simply closes with no exception and nothing in the logs. The onActivityResult function is called with requestCode=1, resultCode=2(error code) and with no data. The sample code from google does the same thing. I have tried everything to get this working. anybody experience anything similar? Help please. AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"