google-places-api

Adding Multiple Instances of Google Places on Same Page

最后都变了- 提交于 2019-11-27 11:41:11
问题 I'm looking to include 2 instances of Google Places auto-complete on the same page. Looking to setup an input for a Pickup Location and an input for a Dropoff Location. I'm assuming it has to do with the ID of the input element, but even when I changed it to a class, it still wasn't working. This is what I currently have, and it works for the first field, but I can't figure out how to get a second input field to auto complete, or even show any signs of being anything other than a plain input

How to get 20+ result from Google Places API?

浪尽此生 提交于 2019-11-27 11:03:38
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 location. So Please suggest me some idea for that i should use my own database or not? I know that i can

Google places API - popular times [closed]

不羁的心 提交于 2019-11-27 09:46:05
问题 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 . 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? 回答1: 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

Detect the nearest transit stop from the given location

穿精又带淫゛_ 提交于 2019-11-27 09:14:05
问题 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

Why Google places API key not works?

纵饮孤独 提交于 2019-11-27 08:42:36
问题 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" } 回答1: It looks like you try to use Web Service, not Places API for Android.

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

坚强是说给别人听的谎言 提交于 2019-11-27 08:29:29
问题 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 {

Google Places API for Android Place Picker Does not work

不羁的心 提交于 2019-11-27 07:38:36
问题 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

Getting results of nearby places from User's Location using Google Maps API in Android

余生长醉 提交于 2019-11-27 07:08:54
This is the first time using google map API and google places API. I am doing a demo application that displays the list hospitals (for example) nearest to the user's location with routes to each of the hospitals. I been able to get the user's location with the code below the: public class MainActivity extends ActionBarActivity { private GoogleMap map; UiSettings mapSettings; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); if

Using Google Places API in Android

醉酒当歌 提交于 2019-11-27 06:45:48
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? 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 tutorial didn't exist. Original: You could try this tutorial (now 404): http://blog.brianbuikema.com/2010/08

Dalvik VM error: Exception found “Javax.xml.namespace.QName.class”

…衆ロ難τιáo~ 提交于 2019-11-27 05:49:49
问题 This isn't intended to be a question. Rather, an observation which is a common problem found in Android when you use external APIs for development and android.jar isn't duplicated into your project! 回答1: After searching through various forums, Google and stackoverflow, I seem to get a solution by myself and thought of sharing it. Whenever you are linking external libraries, better link it by creating a /lib folder and dump those .jars there(means to COPY the files and NOT linking them). Link