google-places-api

Google Places JS API Show Reviews

可紊 提交于 2020-01-02 23:17:34
问题 JS API, not web service: I'm having trouble displaying the 0-5 reviews included with the Place Details Responses: https://developers.google.com/maps/documentation/javascript/places#place_details_responses So far I have been able to display these items: details.name details.rating details.open_now details.formatted_address details.types details.formatted_phone_number But when I try to show details.reviews it just displays: [object Object],[object Object],[object Object],[object Object],[object

how process response object from Google Places API - placesPhoto

寵の児 提交于 2020-01-02 14:03:41
问题 I am writing a simple wrapper in node.js which calls Goole Places API and gets a photo using photo_reference. When I run this and process the request from Postman it works but does not display photo itself. In the code below mapsClient.placesPhoto does return a huge response with many tags. Its not just raw image data. My question is how do I extract image or image data from googleResp object and send it back to client? var googleMapsClient = require('@google/maps').createClient({ key: 'xyz'

Google Maps API v3 Places Library returning undefined utc_offset

十年热恋 提交于 2020-01-02 07:58:40
问题 I'm developing a time and location aware application and the google maps v3 api places library has almost everything I need. However, when doing a textSearch() for specific addresses, and attempting to call getDetails() for one of the returned PlaceResult items, the PlaceResult.utc_offset property returned from getDetails() is undefined (all the other PlaceResult properties I need are returned fine, just not the utc_offset). It's strange, because if I do a textSearch() for a generic term like

How to implement Google Places Autocomplete per session from SDKs?

a 夏天 提交于 2020-01-02 05:50:06
问题 Is it possible to implement session based autocomplete from the places sdk for Android and iOS apps? According to new Google Maps framework pricing coming into effect June 11th request made to autocomplete can be broken down into keystroke/session based. I haven't been able to find documentation describing implementation steps, except for this reference. 回答1: The session tokens will be available in the new versions of Google Places SDK for Android and Google Places SDK for iOS. These new

The Places API for iOS is not enabled error

二次信任 提交于 2020-01-01 10:48:34
问题 I'm not able to call the places API Error: The operation couldn’t be completed. The Places API for iOS is not enabled. See the developer's guide (https://developers.google.com/places/ios-api/start) for how to enable the Google Places API for iOS. I've followed this guide Places API getting started: 1) Install the API (Pod file and pod install) 2) Setup the API Key and restrict it to iOS 3) Add the key in AppDelegate (GMSPlacesClient.provideAPIKey("YOUR_API_KEY")) However, I'm still hitting

Displaying a Place Description on Google Places API for iOS

被刻印的时光 ゝ 提交于 2020-01-01 08:53:20
问题 My apologies if this has been answered already. I cannot find it and I'm very new to the GooglePlaces API for iOS. Question: How do I get a place's description using the Places API and display on an iOS app? I'm not sure if this is even possible but I'd like to find out. Please see the attached image as to what I mean by place "description." Google Place Description Example 回答1: No worries, here are the links which you can refer for places description and places list. -- This will help you to

Google place API for android to find city

旧巷老猫 提交于 2020-01-01 08:46:08
问题 I have seen the tutorial( tutorial ) to find the city using autocomplete text view in android.i have done everything that is instructed but now when i hit this url it always throws me an exception saying : java.net.UnknownHostException: Unable to resolve host "maps.googleapis.com": No address associated with hostname but the same url work fine when i hit through browser and i am getting the results also. Here is the code i m hitting with : public class PlacesAutoCompleteAdapter extends

Google places autocomplete, how to clean up pac-container?

左心房为你撑大大i 提交于 2020-01-01 07:39:21
问题 I'm using the google places autocomplete control, and it creates an element for the drop down with a class pac-container . I'm using the autocomplete in an ember app, and when I'm done with it the DOM element the autocomplete is bound to gets removed, but the pac-container element remains, even thought its hidden. Next time I instantiate a new autocomplete, a new pac-container is created and the old one remains. I can't seem to find anything like a dispose method on the API, so is there a way

Google Places API Autocomplete get cities List only

给你一囗甜甜゛ 提交于 2020-01-01 06:33:25
问题 I am implementing google's places autocomplete on my Android app and it is working which show every similar places, but how can I get cities suggestions only when user tries to search anything. I have searched alot I was unable to find similar problems for Android places autocomplete. I have implemented PlaceAutocompleteAdapter from google's example and this how it looks like PlaceAutocompleteAdapter package com.tribikram.smartcitytraveler; import android.content.Context; import android

Travel destinations API [closed]

喜夏-厌秋 提交于 2020-01-01 05:41:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 months ago . When you google a country's name, the results page displays a section called "travel guide", which includes travel info about that country and a little list of destinations as shown in the image below. Is there a way to fetch this kind of data (eg, country name, description, things to do (as an array with title