google-places-api

CoreData threading issue with Google Place Picker with unrelated Managed Object Context

烂漫一生 提交于 2019-12-12 04:25:55
问题 Sorry for the long post; however, I wanted to be through. I have multiple Managed Object Contexts (moc) and a substantial code working stable and consistently. Except for the current issue. Weird thing is the address of the moc is none of the ones I created - an unrelated moc is crashing that I am not even accessing. Please read on if you have time. Very simply put, I crate a new child moc and pass it on to the new view controller. User sets some values and saves them. Child moc is saved,

Storing API keys on the Realtime Database (Firebase)

不羁岁月 提交于 2019-12-12 03:45:19
问题 My android app requires using the Google Place Search API but since it's not available for android, I'll have to call the Web API. I've considered using Cloud Functions but that's too expensive and can be done for a lot less if done locally on each client. The problem is storing the API key on the user's devices as it can be easily retrieved. Thus is it safe if I store the key on the RT DB and reference it only when needed? Also, if you have suggestions, I'd me more than happy to implement

Google Places Details to Excel with VBA

余生颓废 提交于 2019-12-12 03:44:45
问题 I'm trying to get a full detail list of Google places to an Excel sheet by using a Text Search request to Google. So I want to perform an API query (?) by writing a search string to an Excel cell getting the VBA to query Google "Place Search" and returning a temporary list of Placeid's matching the search string getting the VBA to query all the details of the previous step's Placeid's with Google "Place Details" and writing them to the sheet So the code should "chain" these two APIs to my

Initial place for google place autocomplete

若如初见. 提交于 2019-12-12 03:35:16
问题 I am using google map place autocomplete API in my application. Now at the initial load i want to show one location on that input of autocomplete. Is there any way i can achieve it without setting value of the text box ? 回答1: Probably the API doesn't support anything like that. However, you can simulate the same by prefilling the text box with the location you want and then center your map on that location. For example: You can prefill the textbox with 'Bangalore, Karnataka' and center the

Accessing the place image from Google Places for iOS

大憨熊 提交于 2019-12-12 03:09:20
问题 I'm trying to grab the image of locations from Google Places. The JSON output is as follows, but I don't see how to access the image of each location. I want to put this image in a tablview with the listing for each place. { "html_attributions" : [ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e" ], "results" : [ { "geometry" : { "location" : { "lat" : -33.8719830, "lng" : 151.1990860 } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons

Google maps global search

一笑奈何 提交于 2019-12-12 00:44:00
问题 I am trying to use google places textSearch to discover all stores of certain brand (lets say Levi's) so I will iterate through the results by using next_page_token, but I seem to hit the issue of the max 60 results that are returned. Can this results be lifted somehow or does anyone know of another service that can provide this kind of results ? 回答1: There is sadly no way around the 60-entry restriction other than clever polling on textsearch, and the results cannot be sorted. Your best

How can I use google maps API and places library?

故事扮演 提交于 2019-12-11 22:07:40
问题 I am trying to use the google maps API to load a map and autocomplete a form. However when I try and initialise I can't do it. I can do this: <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"> </script> And the map works. Places API doesn't. I tried adding &libraries=... to the end but that didn't work. If I add: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=geometry"> </script> This is

My Places API returns 'ZERO_RESULTS'

情到浓时终转凉″ 提交于 2019-12-11 20:32:50
问题 My site shows Gmap with few places categories (cafe, pharmacy. bank, etc...) Some categories ALWAYS returns 'ZERO_RESULTS' while Only two returns results. Here is an example for a good request- https://maps.googleapis.com/maps/api/js/PlaceService.FindPlaces?1m6&1m2&1d32.0644854235794&2d34.78186263896919&2m2&1d32.073468576420595&2d34.79246336103074&2siw&6sparking&callback=_xdc_._pocujy&token=76152 Here is an example for a bad request- https://maps.googleapis.com/maps/api/js/PlaceService

Undefined objects from json with javascript

こ雲淡風輕ζ 提交于 2019-12-11 19:36:16
问题 Here I have a code for creating map and sibar with links, but in infowindow all is ok, and in sidebar I only get undefined text: http://jsbin.com/EVEWOta/23 (just click submit) So what is exactly the problem? CODE: var side_bar_html = "<a href='javascript:google.maps.event.trigger(gmarkers["+parseInt(gmarkers.length-1)+"],\"mouseover\");'>"+place.name+"</a><br>"; document.getElementById('side_bar').innerHTML += side_bar_html; } 回答1: You are using RadarSearch. From the documentation:

The previous marker of changed input field doesn't disappear in Google Places Autocomplete

谁说我不能喝 提交于 2019-12-11 19:31:58
问题 Hi i'm using Google Places Autocomplete with 4 inputs. The problem is that when a single input field is changed the previous marker(and its infowindow) of this input field doesn't disappear from the map. How can I make the markers to be overwritten? Any answer is appreciated. Here is my code: <script> var map = null; var autocompleteOptions = { componentRestrictions: {country: "az"} }; Here are the arrays for markers and infowindows: var infowindow = []; var marker = []; setupAutocomplete