google-places-api

Google Places Api sort by distance

99封情书 提交于 2019-12-17 18:47:11
问题 Currently developing an Android application that returns the closest 20 location to the users current location. Google Places API is returning ~20 places close to the users location but not the closest 20 sorted by distance. Looking at the Google Places API Documentation does not show anything that I can see to be incorrect. GetPlaces.java String types = "accounting|airport|amusement_park|aquarium|art_gallery|atm|bakery|bank|bar|beauty_salon|bicycle_store|book_store|bowling_alley|bus_station

Trying to use Google Places API with JQuery's getJSON function

旧城冷巷雨未停 提交于 2019-12-17 17:02:26
问题 This is probably very basic but I'm trying to test the Google Places API. I'm going through the documentation and using some of the examples they provide. I'm trying to use the JQuery getJSON function because I've been able to successfully use it to access external JSON files asynchronously with it, so I thought it might be a good approach to getting the JSON results of the Google Places query. This is the code I'm trying to use: <body> <div id="message"></div> <script type="text/javascript">

To get more than 5 reviews from google places API

拜拜、爱过 提交于 2019-12-17 16:32:58
问题 I am doing an application where I extract the google reviews using google places API.When I read the document related to it in "https://developers.google.com/maps/documentation/javascript/places",I found out that I could get only 5 top reviews.Is there any option to get more reviews. 回答1: There is a feature request for that: Issue 7630: Response to Include More Than 5 Reviews ─ I'd recommend you "star" it to receive updates. 回答2: In order to have access to more than 5 reviews with the Google

Google Places API - Places detail request undefined

点点圈 提交于 2019-12-17 15:51:55
问题 I'm trying to retrieve place details using the Google Places Library. When you click the place marker I want to be able to see the address, name, website etc. I'm using the following tutorial: http://code.google.com/apis/maps/documentation/javascript/places.html All seems to be going pretty well. In my marker I can display the name and the rating but the address, website and phone number all appear as 'undefined'. Is this because Google doesn't have the information I'm requesting on these

How long do the new Places API session tokens last?

允我心安 提交于 2019-12-17 10:59:47
问题 I have a website that uses address autocomplete on multiple pages--address book, shipping address, billing address. With the billing changes releasing next month, we can convert the Autocomplete process to use sessions instead of individual keystrokes. (https://cloud.google.com/maps-platform/user-guide/pricing-changes/#billing-changes) How long is an AutocompleteSessionToken good for? The current page? An hour? Twelve? Permanently, with it counting against the limit each time it shows up in a

How to get place description from Google Places API

六眼飞鱼酱① 提交于 2019-12-17 09:59:37
问题 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 回答1: Currently you cannot obtain this data via Places API. There

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

半腔热情 提交于 2019-12-17 08:54:26
问题 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

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

谁说我不能喝 提交于 2019-12-17 08:54:15
问题 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

Android Place Picker closes immediately after launch

给你一囗甜甜゛ 提交于 2019-12-17 05:01:21
问题 I am developing an android application as part of a project, and am using Google places API to display places of interest based on location. I am using the PlacePicker Inentbuilder to accomplish this. However, when the app is run, the place picker launches and then closes immediately (about 1-2 seconds). I have already implemented the below suggestions (that I got from other answers): I have generated the public API key for android applications, and am including this in the meta-data tag in

Places for Android API deprecated alternative

一笑奈何 提交于 2019-12-17 01:11:51
问题 I was trying to implement the Places API. My code looked like this: val builder = PlacePicker.IntentBuilder() startActivityForResult(builder.build(mActivity), PLACE_PICKER_REQUEST) My maps credentials were correct, but for this call I got Places API for Android does not seem to be enabled for your app. See https://developers.google.com/places/android/signup for more details. However, when I tried to enable the "Places API for Android", I got this error. You do not have sufficient permissions