google-places

Google Places Nearby Search

主宰稳场 提交于 2019-12-23 09:55:59
问题 I'm trying to fetch a local BMW repair facility for Dortmund, Germany. According to Google Maps, there is a BMW dealer nearby to location 51.48488,7.4687013. The following request matches the above mentioned dealer: maps.googleapis.com/maps/api/place/nearbysearch/json?location=51.4842556,7.474081&radius=20000&language=en&name=BMW&key=API_KEY { "name": "BMW Niederlassung Dortmund", ..., "types": [ "car_repair", "car_dealer", "store", "point_of_interest", "establishment" ], ..., "vicinity":

Google Place with R

≡放荡痞女 提交于 2019-12-21 17:47:09
问题 My purpose is to use R to query google api. I have a list of addresses and names (belong to shops, restaurants, etc.) and for each of them I need to store: "latitude", "longitude", "business type" My idea is to use google place api: -Use the Text Search Requests to search the address to store latitude e longitude https://maps.googleapis.com/maps/api/place/textsearch/xml?query=address&key=AddYourOwnKeyHere -Then use the Radar Search Requests to search the name nearby the latitude e longitude .

Fail to obtain specific Place from PlaceBuffer

允我心安 提交于 2019-12-21 03:58:16
问题 I have strange problem with one specific place. Any idea ? This code is working fine, but for one place (accidentally choosen because of starts with aaa - just for test) it fails to obtain Place object from buffer. Even a query was successfull (log: PlaceAutocompleteAdapt﹕ Query completed. Received 5 predictions.) Unfortunatelly, it crash application. It make this API very dangerous, what else should be handled in try catch block for sure? addressAutocompleteText.setOnItemClickListener(new

Change foreground and background color of Place Autocomplete Fragment

淺唱寂寞╮ 提交于 2019-12-21 03:37:07
问题 I've used Google Place API and integrated Place Autocomplete Fragment . Can i change its Foreground or background color. It seems bit dull in my device. And I also want to know that can I set " powered by Google " sentence to at the bottom part of the screen. I have seen some application which have it on bottom. 回答1: If you place that fragment in another layout you are able to modify as you want. Make nested such: <...CardView...> <..Your Fragment...> The logo issue, since you decided to use

AutoComplete Google Places get error :This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console

房东的猫 提交于 2019-12-20 04:55:13
问题 i'm trying to develop Maps with autocomplete textview with Google API. i tried this tutorial here but i always get this error when i'm tryin to get the API : { "error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console", "predictions" : [], "status" : "REQUEST_DENIED" } i tried to find the solution, and i tried all the solution, like to use a browser key , server key ,

GMSAutocompleteViewController showing only 5 results

。_饼干妹妹 提交于 2019-12-18 17:25:45
问题 I integrated GMSAutocompleteViewController in my app. let autocompleteController = GMSAutocompleteViewController() autocompleteController.delegate = self let filter = GMSAutocompleteFilter() filter.type = .address autocompleteController.autocompleteFilter = filter // Display the autocomplete view controller. present(autocompleteController, animated: true, completion: nil) This always shows only 5 results. Also, the behaviour seems to be a bit weird. At first when I write J in the search, 5

How to restrict google places to specific city

夙愿已清 提交于 2019-12-18 05:03:39
问题 I am currently able to restrict places to only one country, but I also want to restrict on a specific city also. Any ideas how to achieve that? This is my current code: var autocomplete, options = { types: ['geocode'], componentRestrictions: {country: 'est'} }; autocomplete = new google.maps.places.Autocomplete(input, options); google.maps.event.addListener(autocomplete, 'place_changed', function () { var place = autocomplete.getPlace().formatted_address; $(input).attr('value',place); }); 回答1

Embedded Google Map can't get current location in WebView

我们两清 提交于 2019-12-18 05:01:32
问题 I followed this tutorial: http://android-er.blogspot.com/2013/03/embed-google-map-in-webview.html I'm trying to just use the Google Map in the WebView, but it can't get my current location. I've enabled JavaScript on the WebView. What else do I have to enable? Does anyone know why that might be? Shouldn't it prompt me to use my current location? Note that I am not interested in using a MapView as an alternative whatsoever. I'm trying to find out what I need to set on the WebView or maybe on

Embedded Google Map can't get current location in WebView

时间秒杀一切 提交于 2019-12-18 05:01:10
问题 I followed this tutorial: http://android-er.blogspot.com/2013/03/embed-google-map-in-webview.html I'm trying to just use the Google Map in the WebView, but it can't get my current location. I've enabled JavaScript on the WebView. What else do I have to enable? Does anyone know why that might be? Shouldn't it prompt me to use my current location? Note that I am not interested in using a MapView as an alternative whatsoever. I'm trying to find out what I need to set on the WebView or maybe on

Place Picker Automatically close after launch

戏子无情 提交于 2019-12-17 19:19:14
问题 I want to show place picker so that user can choose location of his/her own choice. But place picker child activity automatically closes after launch. I've check the API key multiple times and other permissions, everything is correct. Here is all the code. Please help! task_location.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { try { PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder(); Intent intent = intentBuilder.build