google-places

understand the google places api for using with a webpage

自古美人都是妖i 提交于 2019-12-08 08:01:57
问题 OK so I rad through the documentation however I still don't understand exactly how it works. If I want to search for a place I am supposed to use an HTTP get request to return json data. How do I do this using JavaScript? The documentation just shows me how to structure the HTTP request like so https://maps.googleapis.com/maps/api/place/nearbysearch/output?parameters But how do I then send this request? Pointing me to a tutorial or something would be great. 回答1: The Places Library does all

Locations uploaded to Places not appearing in Query

陌路散爱 提交于 2019-12-08 04:50:37
问题 I am using Google Places API to store points at Google site. In short, i developed a simple set of Java Classes that would make use of JSON and my Google API Key to post it. I recvd success message with the id,reference and status det. Let me make it clear that I am not an Enterprise customer and I am not paying any money to Google for maintaining the points. Next, I made a simple HTML page(not JSP) built using Google Maps and Places Javascript API wherein i have text boxes enabled with

GMSAutocompleteViewController iOS, how to change the text color in the searchBar [duplicate]

孤人 提交于 2019-12-07 14:08:06
问题 This question already has answers here : Change UISearchBar textColor not working (5 answers) Closed 10 months ago . I'm using a GMSAutocompleteViewController and want to change the textColor in the searchBar but can't find a way to do it, I managed to change the some colors but not the searchBar text. I've tried following code but the color won't change: acController.searchBarController?.searchBar.tintColor = UIColor.whiteColor() acController.searchBarController?.searchBar.textColor =

what javascript will simulate selection from the google maps api 3 places autocomplete dropdown?

落花浮王杯 提交于 2019-12-07 10:23:25
问题 I'm trying to automate the selection of items (using jQuery) from the autocomplete dropdown of the google maps api v3 places library. I am unable to determine the javascript required to select the item from the dropdown . So, for example, here are the steps required to complete a partial field and trigger the dropdown for something like google's demo of this resource: [EDIT the following code updated to show solution...] $('input[name=address]').val("525 Bergen Street"); $('input[name=address

Error use unresolved identifier GMSPlacePickerConfig & GooglePlacePicker? (Google Places 2.0)

ぐ巨炮叔叔 提交于 2019-12-07 08:35:44
问题 Error use unresolved identifier GMSPlacePickerConfig & GooglePlacePicker? (Google Places 2.0) import GoogleMaps import GooglePlaces are already declared on top. Here 回答1: Now, google has broken it into multiple frameworks. You need to add a new pod 'GooglePlacePicker'. 回答2: I don't see any error on your code based on this sample code. If you are using cocoapod , you need to add pod 'GooglePlaces'. Error Use of unresolved identifier usually occurs when your new class has a different Target(s)

Why are keyword searches acting like name searches in google places API?

和自甴很熟 提交于 2019-12-06 17:03:38
I am working on a public health project where I'm scraping an entire state for tobacco vaping shops. I've been experimenting using the google places API webservice, specifically the Nearby and Text methods . Below is some quick R code (needs some error checking, but runs) to show you the two versions of what I'm doing. I'm finding that keyword searches seem to be behaving like name searches - my results for "vape" in either Nearby Search Requests or Text Search Requests are being waaay too strict, giving me only, for instance "The Vape Escape", "Cloud Vape Lounge" and "Juice Vapeorium" - but

Android: How to display photos from Google Places API

家住魔仙堡 提交于 2019-12-06 15:54:56
I have an application which is returning a list of places from the Google Places API. When a user clicks on a marker (representing the place) on a map, a Dialog box pops up with details about that place. I would like to also display a photo of the place (if one exists). I am aware of the Place Photos API from here : https://developers.google.com/places/documentation/photos#place_photo_response I am able to retrieve the photo_reference from the Place Details response, and I can pass that to the Place Photos API request, along with sensor, maxwidth/maxheight and my API key. The problem I am

how to get google places autocomplete to work if the textbox is initially hidden and should be shown only after a postback

▼魔方 西西 提交于 2019-12-06 14:46:42
I've got two textboxes for which I need to use google places autocomplete. These textboxes are contained in a panel which is hidden on page load. There is a list of options from which to select, and once that user input is obtained, the hidden panel should get shown. I've tried both Panel.visible = false; and Panel.Style["display"] = "none"; Panel.Style["visibility"] = "hidden"; But neither work. Once the panel is hidden the autocomplete for textboxes stop working. I cannot show the panel initially. Is there a work around for this? Can i trigger the autocomplete after a specific postback? Or

How do i show places, in google maps api v3 and google places api, between two points?

久未见 提交于 2019-12-06 13:33:52
问题 How to show places nearby certain radius starting from every point of a route path between two points. 回答1: You can't. The Places API will return at most 60 results in groups of 20. There is an infinite number of points along a route. You can investigate the RouteBoxer, but to do what you want you will need a source of data besides the Places API. 来源: https://stackoverflow.com/questions/13753674/how-do-i-show-places-in-google-maps-api-v3-and-google-places-api-between-two-p

How to improve performance of google places autocomplete suggestions?

早过忘川 提交于 2019-12-06 05:23:21
问题 I am using google places autocomplete suggestions in my application. It is working fine but i want to improve its performance. When user types a place, it is giving a suggestions after a long delay or sometimes after deleting the last characters. How do i improve it's performance? Please help me. Thanks in advance Here is my code public class invoice extends Activity { AutoCompleteTextView edit_destination; DownloadTask placesDownloadTask; DownloadTask placeDetailsDownloadTask; ParserTask