google-places-api

Getting nearest bus stations from Google Map inside Android Application

旧城冷巷雨未停 提交于 2019-12-13 02:14:58
问题 I am working on an Android application in which I need to achieve the following goals. Get the current position(co-ordinates) of the device - Done Search within a given radius centering the device position for the nearest bus stations and List them. I need help on the second thing. Is there any way to get the Nearest bus stations from the Google Map inside an android application? Can I use Google Places API to achieve this?(the official page says that it's still experimental). If yes, how?

Is it possible to get latest five google reviews from google places api?

本小妞迷上赌 提交于 2019-12-13 02:08:21
问题 I have developed a script to fetch and show google reviews using google places api. It fetches five reviews but not the latest. Does google places api returns 5 random reviews or latest 5 reviews ? Thanks 回答1: as stated here : http://code.google.com/p/gmaps-api-issues/issues/detail?id=2477 "It's the top 5 reviews shown on Google+ Local, which I believe are ranked by relevance/helpfulness. It's not possible to change the set of reviews that are requested." 回答2: Places API only returns 5 by

Swift - Google Maps update directions from current location

房东的猫 提交于 2019-12-13 01:42:39
问题 I am currently in the process of learning the Google Maps API for Swift, and therefore I have a couple of questions that I hope can be answered by some of you guys. It just so happens that I am trying to create an app that simply gives the user directions, and much like Apple Maps and Google Maps, it simply draws a direction route for the user. I have managed to make this work, but what I am struggling with - is to simply 'update' the directions instead of constantly 'creating' new direction

iOS google places API - compile error - use of undeclared identifier GMSAutocompleteViewController

不打扰是莪最后的温柔 提交于 2019-12-13 01:40:27
问题 I have installed GoogleMaps SDK using CocoaPods. For some screen I need to use Google Places API Here is the code GMSAutocompleteViewController *acController = [[GMSAutocompleteViewController alloc] init]; acController.delegate = self; [self presentViewController:acController animated:YES completion:nil]; Which I have got from https://developers.google.com/places/ios-api/autocomplete The error - use of undeclared identifier 'GMSAutocompleteViewController' 回答1: Have you added #import

Make infoWindow like Google map's default infoWindow that shows info from Google Places

大兔子大兔子 提交于 2019-12-13 01:35:19
问题 We have a Google Local profile (or Google Places) for our business and we have added multiple locations for each store. The requirement is to embed a map in each store page of our website with the accurate location of the store and to display an infoWindow just like it's been displayed from Google's map. Example below: I have read the API's documentation but I can't seem to find a clear answer as to the way of referencing a store that already exists in the map. If I add the address of the

Google maps api search returns unexpected results

自古美人都是妖i 提交于 2019-12-13 01:29:54
问题 Using the example code at: https://developers.google.com/maps/documentation/javascript/examples/places-searchbox I find that when I type: DePaul University and then choose the third one: DePaul University, North Kenmore Avenue, Chicago, IL, United States it actually returns me a place named "The Theater School at DePaul University" where I would prefer getting just "DePaul University" which was what was bolded in the textbox. Also when I type: Herzing University and then choose: Herzing

Increase the range of getCurrentPlace

荒凉一梦 提交于 2019-12-13 00:55:28
问题 I'm playing with Google Places API for Android, i tried to retrieve location next to me with this sample : PendingResult<PlaceLikelihoodBuffer> result = Places.PlaceDetectionApi.getCurrentPlace(mGoogleApiClient, null); result.setResultCallback(new ResultCallback<PlaceLikelihoodBuffer>() { @Override public void onResult(PlaceLikelihoodBuffer likelyPlaces) { Log.d("Hello", "Got results: " + likelyPlaces.getCount() + " place found."); for (PlaceLikelihood placeLikelihood : likelyPlaces) { Log.i(

google place action delete places gives invalid request

与世无争的帅哥 提交于 2019-12-13 00:06:53
问题 I am creating an android application for adding and deleting places on google map near by search using google places api.I am able to add new places from my application which is displayed in nearby search result.Now when i am trying to delete any of this place using place delete action,it always gives INVALID_REQUEST response. Here is my url for deleting places: String url="https://maps.googleapis.com/maps/api/place/delete/json?key=MY BROWSER KEY"; new delete().execute(url); And my code for

Google Places API not returning suggestions based on location

让人想犯罪 __ 提交于 2019-12-12 22:18:12
问题 When I search from the Google Places Autocomplete, it gives suggestions/predictions from all around the world. However I want to get suggestions based on user's location. I have tried to change my location manually in the emulator, but it still does not work. I think I may be lacking something in my code, but I don't know what. Please help. Code: My Dependencies compile 'com.google.android.gms:play-services-places:10.2.1' compile 'com.google.android.gms:play-services-location:10.2.1' compile

Customize google placepicker colors for android

限于喜欢 提交于 2019-12-12 20:08:59
问题 I want to customize google place picker widget for android. Can I styling primary and primary dark colors for devices with API below 21 (using appcompat matherial)? 回答1: Yes it is possible to use material design themes below android 5.0. Check This out Link 来源: https://stackoverflow.com/questions/29321281/customize-google-placepicker-colors-for-android