google-places-api

Unable to get special opening hours from Google Places API

三世轮回 提交于 2019-12-10 19:45:26
问题 Special hours are marketed/documented on Google My Business , see https://support.google.com/business/answer/6303076 Is there a way of retrieve this special opening hours from the Google Places API? I've tried adding special hours to Google My Business. It works as expected in Google Maps and Google search. However, it does not show in the returned values from Google Places API. 回答1: Currently, special hours are not available via Places API. There is a feature request 10145 in the public

Fetching Reviews from Google Map

夙愿已清 提交于 2019-12-10 19:34:05
问题 I have a scenario.I want to fetch reviews of a particular place from google map and place them in my android application.Is this possible or I have to make a webservice and parse the reviews in my application?? Can anybody show me the way?I am using google map V2. 来源: https://stackoverflow.com/questions/22369528/fetching-reviews-from-google-map

OVER_QUERY_LIMIT in a loop

别说谁变了你拦得住时间么 提交于 2019-12-10 19:16:28
问题 I'm getting the OVER_QUERY_LIMIT status code when using the Google Places Javascript Library. I have billing enabled on my account so it's not that I'm actually hitting the limit on the number of places requests I make, but I'm using the Javascript library and looping through a few hundred Places search requests. The problem is, this causes OVER_QUERY_LIMIT status to come back from the search unless, while debugging, I slow down the loop. Funnily enough this only happens with the JS Library,

Why do some results show up in Google Maps but not in Places API results?

故事扮演 提交于 2019-12-10 19:05:43
问题 Ok, so when I search for "Dobry" on Google Maps I get this result: http://maps.google.de/maps/place?q=dobry&hl=de&cid=15804306880695571087 But when I try to retrieve that same restaurant from the Places API, https://maps.googleapis.com/maps/api/place/search/json?location=48.1321091,11.366&radius=500&types=establishment&sensor=false&name=Dobry&key=ABCDEF1234, I get ZERO_RESULTS . How can I retrieve the id (not cid) Tag of that establishment? And why do the results differ? The lat/long location

How can I get place details via getDetails in specific language?

北战南征 提交于 2019-12-10 18:36:46
问题 Having placeId I need to get place details. I can do this with the following code: var service = new google.maps.places.PlacesService(document.createElement("div")); service.getDetails({ placeId: locationReference }, parseLocationDetailResponse.bind(null, function(addressObject) { deferred.resolve(addressObject); })); How can I manually specify language for place details object? 回答1: Google maps provides list of languages you need. Simple adding the &language=(type of language) in script scr

Getting multiple types using Google Places API now deprecated

旧时模样 提交于 2019-12-10 18:28:28
问题 Google has recently announced that: "The types parameter is deprecated as of February 16, 2016, replaced by a new type parameter which only supports one type per search request." My question is this: Is there now any way (not using deprecated parameters) to get multiple place types from a single API call? Thank you. 来源: https://stackoverflow.com/questions/41632944/getting-multiple-types-using-google-places-api-now-deprecated

How can I get place details from Google Places API for Android?

谁说我不能喝 提交于 2019-12-10 18:14:53
问题 I want to get details of places (cityName, ZipCode, etc) from predictions that I get from Autocomplete Places service. My code is like the following: Places.GeoDataApi.getAutocompletePredictions(googleApiClient, query, bounds, null) .setResultCallback( new ResultCallback<AutocompletePredictionBuffer>() { @Override public void onResult(AutocompletePredictionBuffer buffer) { if (buffer == null) return; if (buffer.getStatus().isSuccess()) { for (AutocompletePrediction prediction : buffer) { //

Get the google plus URL based on place_id of Google Places API?

情到浓时终转凉″ 提交于 2019-12-10 17:18:33
问题 How can I get the plus.google URL page of the corresponding google place based on the place_id I obtain from the json the maps.googleapis.com/maps/api/place returns? 回答1: Perhaps you can use the Place Details api using the place_id? https://developers.google.com/places/documentation/details 回答2: This seems old post now but wanted to add some more details. 'places' details API provides google plus URL: Quoting from https://developers.google.com/places/documentation/details: url contains the

How do you change the styling of a fragment? - Google Place Autocomplete

久未见 提交于 2019-12-10 16:34:53
问题 I am an android newbie, so please go easy on me. I have just implement the google places auto complete field, https://developers.google.com/places/android-api/autocomplete . The only thing I added to the view was this fragment which controls both a textInput, and a modal for the search results which emerges when the textInput gains focus. <fragment android:id="@+id/place_autocomplete_fragment" android:layout_width="match_parent" android:layout_height="wrap_content" android:name="com.google

Triggering Google Places Autocomplete Places places changed when text input same value of one of the selections

和自甴很熟 提交于 2019-12-10 15:18:55
问题 I'm using the Google Places Autcomplete API and jQuery. It's basic functionality is working fine. What I would like to do is if someone types something into the autocomplete that is exactly the same as one of the selections I would like that item to be selected and the place_changed event to fire. This is because I have some logic in the places changed listener that I need to trigger. The idea is that if someone types in the exact same text as one of autocomplete options then it should act as