google-places

How to find fid from cid in google place?

混江龙づ霸主 提交于 2019-12-03 20:55:49
I need "fid" of google place if I have "cid" CID: 13044706322416579131 FID: 0x395e84f3f650771d:0xb5081b4952eeb23b As I found 2nd portion (0xb5081b4952eeb23b) of fid is hex of cid (13044706322416579131) . But I can't find how to get 1st portion (0x395e84f3f650771d) First, you would start by locating the Google Plus Local page. You then click the ‘Edit business details’ link on that G+ Local Page. That URL can then be transposed into a Google Maps (Google Places) URL such as in this example: visit a Google+ Local page, such as: https://plus.google.com/109929267125901378263/ click ‘Edit business

Fail to obtain specific Place from PlaceBuffer

泪湿孤枕 提交于 2019-12-03 12:58:06
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 AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view,

Change foreground and background color of Place Autocomplete Fragment

感情迁移 提交于 2019-12-03 12:21:55
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. 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 all autonomous API instead of creating your own layout and integrating, it comes up by default which will

Google places API returning only 5 results

淺唱寂寞╮ 提交于 2019-12-03 10:54:46
问题 I am consuming Google places API, It returns only top 5 search results. Is there any way to increase the count . e.g. URL i searched for keyword "new" https://maps.googleapis.com/maps/api/place/autocomplete/json?input=new&types=%28regions%29&sensor=false&key=API_KEY 回答1: From the documentation: A JSON response contains two root elements: "status" contains metadata on the request. See Status Codes below. "predictions" contains an array of places, with information about the place. The Places

Google places API returning only 5 results

こ雲淡風輕ζ 提交于 2019-12-03 01:23:19
I am consuming Google places API, It returns only top 5 search results. Is there any way to increase the count . e.g. URL i searched for keyword "new" https://maps.googleapis.com/maps/api/place/autocomplete/json?input=new&types=%28regions%29&sensor=false&key=API_KEY Joel Fernandes From the documentation: A JSON response contains two root elements: "status" contains metadata on the request. See Status Codes below. "predictions" contains an array of places, with information about the place. The Places API returns up to 5 results . Source: https://developers.google.com/places/web-service

Google Maps API Places Library SearchBox

戏子无情 提交于 2019-12-02 20:04:24
问题 I am attempting to add infowindows to the markers with PlaceDetails that are returned after a google searchbox search. When I click on the markers no infowindows open. I cannot figure out where I went wrong? var infowindow = new google.maps.InfoWindow(); //Function for search box var input = document.getElementById('target'); var searchBox = new google.maps.places.SearchBox(input); var markers = []; google.maps.event.addListener(searchBox, 'places_changed', function() { var places = searchBox

Google Place Photo API returning 404

痞子三分冷 提交于 2019-12-02 12:13:31
问题 Google Place Photo API is returning 404 for any photo reference I use. I'm sure I'm doing something wrong Nearby Google Request https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=12.9716,77.5946&radius=5000&keyword=arbor&key={KEY} Photo Reference from Nearby Response: CmRZAAAAu3qofo2XYSX74WtaGYIZ6iMA97uXmuJscP6xOW371WVRPpJk5ZscaxSfEYCCVgXgDzGKRC7ajN0dQ2_sECQqlO8F3YNp38VTmLDJ6LB-qMyyrn__-dnquJR_H4EUegt6EhCmHKtr_TcE_1wIAI-4fuCGGhTu9TPV6X9vQ7SgF-npEOssGdzR2A Photo Request

Google Maps API Places Library SearchBox

人走茶凉 提交于 2019-12-02 09:35:39
I am attempting to add infowindows to the markers with PlaceDetails that are returned after a google searchbox search. When I click on the markers no infowindows open. I cannot figure out where I went wrong? var infowindow = new google.maps.InfoWindow(); //Function for search box var input = document.getElementById('target'); var searchBox = new google.maps.places.SearchBox(input); var markers = []; google.maps.event.addListener(searchBox, 'places_changed', function() { var places = searchBox.getPlaces(); for (var i = 0, marker; marker = markers[i]; i++) { marker.setMap(null); } markers = [];

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-02 07:13:07
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 , enable the google places & map , delete & recreate project , but i still get the error here is my code :

Google Place Photo API returning 404

情到浓时终转凉″ 提交于 2019-12-02 03:54:31
Google Place Photo API is returning 404 for any photo reference I use. I'm sure I'm doing something wrong Nearby Google Request https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=12.9716,77.5946&radius=5000&keyword=arbor&key= {KEY} Photo Reference from Nearby Response: CmRZAAAAu3qofo2XYSX74WtaGYIZ6iMA97uXmuJscP6xOW371WVRPpJk5ZscaxSfEYCCVgXgDzGKRC7ajN0dQ2_sECQqlO8F3YNp38VTmLDJ6LB-qMyyrn__-dnquJR_H4EUegt6EhCmHKtr_TcE_1wIAI-4fuCGGhTu9TPV6X9vQ7SgF-npEOssGdzR2A Photo Request https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference