google-places-api

Google map api autocomplete restricted/bias to street address in my town

僤鯓⒐⒋嵵緔 提交于 2019-11-30 05:28:43
问题 I am trying to write a web application for my final year project at uni, and one of the first problems i need to tackle is getting an auto complete text box for local address input. i have spent some time looking around the internet and spent some time playing with the google maps V3 places autocomplete plugin. there is something i dont quite understand on the api docs which i was hoping someone might be able to clear up for me, aswell as maybe point me in the right direction. in the docs it

java.lang.IllegalArgumentException: Illegal character in query

回眸只為那壹抹淺笑 提交于 2019-11-30 05:25:58
It seems like this error message has been posted a lot, but I have not been able to come up with the proper answer. I am following this tutorial and I can't get the Google Places Info to show up on my screen. I was looking at the LogCat and saw this: 09-20 02:01:32.278: W/System.err(19832): java.lang.IllegalArgumentException: Illegal character in query at index 127: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.6997688,-86.2406069&radius=1000&sensor=true&types=food|bar|store|museum|art_gallery&key=AIzaSyDdMnQpqT9pr-k6VhwesT1OBAg_qkvflxU 09-20 02:01:32.278: W/System

Getting an intersection with Google Places/Geocoding API

扶醉桌前 提交于 2019-11-30 05:15:26
I'm trying to find the two closest streets to a point with the Google Places API (basically to indicate the closest intersection). However, any result will only ever return one "route", if at all. I figure I could do 5 queries in a + or X pattern, but that's hacky, unreliable, and of course will hit the query limit a lot sooner. I am tempted to say that this is a deliberate move because the API is not meant to be used for something like navigation systems (which I'm not trying to do), but I still hope there's a TOS-compliant way to get the intersection. Side note - it seems like specifying

Google Places get LatLng

£可爱£侵袭症+ 提交于 2019-11-30 05:08:47
I am using the Autocomplete method to get Place Suggestions and when I click the Place I want to choose, I want to extract the Lat and Lng which is placed under place.geometry.location as below. As per my observation, the keys ib and jb keep changing with every session. Is there any way I can extract the Lat and Lng predictably? $(document).ready(function() { var mapOptions = { center : new google.maps.LatLng(-33.8688, 151.2195), zoom : 13, mapTypeId : google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map'), mapOptions); $('#searchTextField').bind('keydown

How to make HTTPS requests with serverside javascript using Worklight?

此生再无相见时 提交于 2019-11-30 04:23:36
问题 I'm toying around with IBM worklight, and am trying to create an adapter to feed some data in from the Google places API. I want to call this URL : https://maps.googleapis.com/maps/api/place/search/json?key=AIzaSyCTlPms1pvhzeoRrBao5qW-DJMI_CWcbAM&location=52.0700,1.1400&radius=10000&sensor=false&name=coffee Executing this URL works fine in a browser, and displays some nice JSON that I'm trying to obtain via Worklight. The Worklight adapters are created in Javascript, this is what I have so

How to parse Address from Google Places GeoDataApi for Android, (address_components missing)

孤街浪徒 提交于 2019-11-30 04:10:37
问题 We use the Google Places API prediction similar as in the example app. On selection of a result we get the details for the predicted location using: Places.GeoDataApi.getPlaceById(mGoogleApiClient, placeId); This works fine, my problem is that the result contains just a String as address. When using the JS version of the API, the result contains this: "address_components" : [ { "long_name" : "522", "short_name" : "522", "types" : [ "street_number" ] }, { "long_name" : "Overtoom", "short_name"

Google Places API - Submitting reviews

Deadly 提交于 2019-11-30 03:48:32
问题 I am researching whether the following is possible and if so how I could go about achieving it. We collect reviews for businesses from their customers and we’d like to post these reviews to Google places as part of the reviews they have on their. I was wondering how I would go about getting our website to “push” this data to the Google places website, I’ve done lots of searching on the APIs but have found nothing that says it’s possible or not. 回答1: Currently the Google Places API does not

get Lat Lang from a place_id returned by autocomplete place api

让人想犯罪 __ 提交于 2019-11-30 03:07:43
I am searching the place in my apps using the google autocomplete place api and now I want to get latitude and longitude of the place that i have searched. How to get latitude and longitude from the result returned by autocomplete place api by google in android? droidmad The following code snippet which uses Google Places API for android worked for me Places.GeoDataApi.getPlaceById(mGoogleApiClient, placeId) .setResultCallback(new ResultCallback<PlaceBuffer>() { @Override public void onResult(PlaceBuffer places) { if (places.getStatus().isSuccess()) { final Place myPlace = places.get(0);

Google Places API for Android - PlacePikcer without search option

二次信任 提交于 2019-11-30 02:06:14
I am building an application, where the user has to select a Place he wants. For that, I am using the PlacePicker dialog, as the Google Places API for Android is teaching in the API reference site. However, when the user click the button and open the Place Picker Dialog, it does not have any button where the user can type the name of the place he wants to select. So, the user will have to select a place just dragging on the map; this is horrible for the user, specially if he wants to choose a specific location far from his location or he doesn't know where is the place on the map. So, I've

Google Places API Picker display Only Certain Types of Places

跟風遠走 提交于 2019-11-30 00:36:35
问题 I am making certain android app that requires user to choose a place. I am planning to user google places API.Link: https://developers.google.com/places/android/ This API gives gives nice way to do so through through Place Picker. https://developers.google.com/places/android/placepicker Now suppose I want to only show user places of food type (restaurant, hotel etc.) . Using Places Browser API this can be done by adding "type=restraunts" attribute in the requests. Is there a way to show only