google-places-api

Google Maps/Places Javascript API Autocompletion Restrict Types

给你一囗甜甜゛ 提交于 2019-12-11 03:08:30
问题 I'm using the Google Maps/Places javascript API for autocompletion of locations in an input box. I'm trying to restrict the types of places that are being returned by the autocompletion. I'm very new to coffeescript (and coding in general), but since I have the code snippet here I wanted to see if anyone can see anything in this code that might be causing the call to Google to not consider the place "types" filter. Note that "restaurants" was just used as a test (an unsuccessful one). I've

how do i figure out how to debug this? HttpResponse

∥☆過路亽.° 提交于 2019-12-11 02:56:40
问题 I'm trying to make a json object from the result of the googleplaces api. But one line of code is causing me alot of problems. My question is how the heck do i find what the issue is. I can't seem to catch the right exception (im a noob at debugging though). The url that i am passing in has the value: https://maps.googleapis.com/maps/api/place/search/json?location=34.7,-86.5&radius=16000&types=food&name=mcdonalds&sensor=true&key=(myApiCodeWhichImNOTPostingHere) ^i do have the correct apicode

Get places photos from Factual API

被刻印的时光 ゝ 提交于 2019-12-11 02:49:49
问题 I am using Factual API to list places and restaurants from its restaurants-us schema. I can retrieve all the required fields of information except the images of the places. Is there any way to get the images from Factual API? Or any other way to get them at least by passing the Factual latitude and longitude coordinates to Google Places API? Please help. 回答1: Try to use CROSSWALK for places http://developer.factual.com/places-crosswalk/ 来源: https://stackoverflow.com/questions/23333426/get

Google directions returns REQUEST_DENIED when called from Android

拟墨画扇 提交于 2019-12-11 02:29:14
问题 I am sending a HTTP request to Google Directions and I keep getting REQUEST_DENIED from my Android app. I already checked the SHA-1 that I had configured in the API key in Google console and also made sure that the directions API is enabled for my project. Am I missing something? 回答1: Check the api key you are using from the android app is unrestricted . Google Maps Directions does not support android restricted keys yet, only IP addresses restrictions (which u can't do for android apps) From

Android - Google Place Picker does not display search box

五迷三道 提交于 2019-12-11 01:41:59
问题 I am trying to make an app which can enable user to "check-in" at a certain location through Google Place Picker. I use the code from Google : PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder(); intentBuilder.setLatLngBounds(DEFAULT_LOCATION); Intent intent = intentBuilder.build(LocationActivity.this); startActivityForResult(intent, PLACE_PICKER_REQUEST); The problem is, the search box doesn't appear in some devices but appears in a certain device. Here's a snapshot

REQUEST_DENIED response using Google Places Autocomplete API

谁说我不能喝 提交于 2019-12-11 01:39:20
问题 I am working on android app which uses google's places autocomplete API. When tried to hit following URL https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&types=geocode&sensor=false&language=en&key=apiKey I got the response as below. { "predictions" : [], "status" : "REQUEST_DENIED" } I got the API key from link below Google APIs console also i have enabled Google Maps API v3 service. As per API documentation REQUEST_DENIED response is generally due to lack of sensor

Android using PlaceAutoCompleteActivity (Google Places API)

别等时光非礼了梦想. 提交于 2019-12-11 00:32:52
问题 I have made a very simple example of the issue I am having with the PlaceAutoCompelteActivity . My map will show on the screen, along with 2 text search bars on top. The issue is that once I click in the textview, a keyboard will come up and a cursor will blink in the textview (as expected), however after I type the first letter (if i type quickly I can get 2 letters in), the keyboard will go away and the search box will blank out and the cursor will go away (return to the preclicked on state

Saving google places api photos to my server

余生长醉 提交于 2019-12-11 00:01:23
问题 i need to save the images returned from the google places API to my server. I've tried : $url= 'https://maps.googleapis.com/maps/api/place/photo?key=API_KEY_HERE&photo_reference=CoQBcwAAAAtXfnhO3WCagOlY4p4Px7N8Pcks_N-cLbMQzruT-AdWRZoyJgABVUUcuZ_4bbcUdReloBl2zGd80W4E4w-N_kyab4xz4S3ZZIRVECCJP1u7JsXOfxEsx4XQbL-HeMBRKzNul0XSdy-Dv4495i_8-SqYqTBZMaLvn1YLaVM3aAzOEhBgLV4lpKeM39L6gb9wBbU6GhSmCkYp8djpm9_iaqkS93z4ekLnNg&maxheight=200' $target = md5($array['result']['photos'][0]['photo_reference']);

How can I cancel an ongoing request in [GMSPlacesClient autocompleteQuery]?

让人想犯罪 __ 提交于 2019-12-10 21:23:12
问题 I would like to add autocomplete feature to my app. My idea is to use autocompleteQuery:bounds:filter:callback from GMSPlacesClient class. While user is typing, I would like to call that method, but I guess if I send several requests, I could receive responses out of order. For that reason I would like to cancel the current one, but I don't see a way. Maybe it is implemented internally, I don't know. Any help or suggestion? Thanks a lot. I realised responses could come out of order. I created

Google Places API INVALID_REQUEST with no types attribute

喜夏-厌秋 提交于 2019-12-10 19:59:11
问题 At least this one should be easy for you to verify. This request returns an INVALID_REQUEST : https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=51.509980,-0.133700&sensor=true&rankby=distance&key=[api_key] But this one works (exactly the same but with a types parameter): https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=51.509980,-0.133700&sensor=true&rankby=distance&key=[api_key]&types=food In the documentation it says that types is not a required