google-places-api

How to parse Address from Google Places GeoDataApi for Android, (address_components missing)

只愿长相守 提交于 2019-11-30 19:21:39
We use the Google Places API prediction similar as in the example app. On selection of a result we get the details for the predicted location using: Places.GeoDataApi.getPlaceById(mGoogleApiClient, placeId); This works fine, my problem is that the result contains just a String as address. When using the JS version of the API , the result contains this: "address_components" : [ { "long_name" : "522", "short_name" : "522", "types" : [ "street_number" ] }, { "long_name" : "Overtoom", "short_name" : "Overtoom", "types" : [ "route" ] }, { "long_name" : "Amsterdam-West", "short_name" : "Amsterdam

This IP, site or mobile application is not authorized to use this API key with IP authorized

醉酒当歌 提交于 2019-11-30 19:11:46
I'm using the Google Places API which requires that you give a list of IPs which are allowed to use the service. The API works great on my local machine but it give a This IP, site or mobile application is not authorized to use this API key when I use it from my production server. I've added the required IPs. Any other ideas what might be the issue or how to debug it? I had the same issue and I found this. On the url, it requires the server key in the end and not the api key for the app. So Basically, you just add the server key in the end of the URL like this: https://maps.googleapis.com/maps

Get city name and postal code from Google Place API on Android

☆樱花仙子☆ 提交于 2019-11-30 17:34:23
I'm using Google Place API for Android with autocomplete Everything works fine, but when I get the result as shown here , I don't have the city and postal code information. private ResultCallback<PlaceBuffer> mUpdatePlaceDetailsCallback = new ResultCallback<PlaceBuffer>() { @Override public void onResult(PlaceBuffer places) { if (!places.getStatus().isSuccess()) { // Request did not complete successfully Log.e(TAG, "Place query did not complete. Error: " + places.getStatus().toString()); return; } // Get the Place object from the buffer. final Place place = places.get(0); // Format details of

Google Places API: Searching for names containing spaces

女生的网名这么多〃 提交于 2019-11-30 17:02:23
Is it possible to search for names containing spaces? name: ['Burger King|Subway'] //fails name: ['McDonald|Subway|Chipotle'] // works https://maps.googleapis.com/maps/api/place/search/json?location=33.4,-112.0&radius=5000&name=McDonald|Subway|Chipotle&sensor=false&key=yourkeyhere Thanks! Performing a Places Search Request with multiple keywords or names is not officially supported by the Places API therefore is not guaranteed to return accurate results. If you believe support for multiple keywords or names would be a useful feature, please file a 'Places API - Feature Request' here . As SKAR

How to resolve “PLACES_API_ACCESS_NOT_CONFIGURED”

泪湿孤枕 提交于 2019-11-30 16:56:20
Friends, I was getting this error while implementing google map API in my APP. I was getting this issue: Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null} While searching result for these issues, I got a solution that "open google play console and enable Google Place SDK for Android". But while opening GOOGLE PLAY SDK FOR ANDROID ,I was unable to open it and got these issues as shown in figure below. Now I able to resole this issues.See my answer given below in the link to implement new SDk released. Thanks. Hi Friends I have

How to resolve “PLACES_API_ACCESS_NOT_CONFIGURED”

左心房为你撑大大i 提交于 2019-11-30 14:25:07
问题 Friends, I was getting this error while implementing google map API in my APP. I was getting this issue: Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null} While searching result for these issues, I got a solution that "open google play console and enable Google Place SDK for Android". But while opening GOOGLE PLAY SDK FOR ANDROID ,I was unable to open it and got these issues as shown in figure below. Now I able to resole this

Google places AutoComplete widget is generating a new Session Key per every request

淺唱寂寞╮ 提交于 2019-11-30 14:21:37
Recently, Google has updated some billing policies as part of that they've introduced SessionTokens for the Autocomplete requests. As part of that, every request in the same session will be sent the same token in the request and it's automatic if we use the AutoComplete widgets provided by Google APIs. But, I'm seeing a different token generated for every request in the same session. I'm I missing anything, please guide me. Here is the pluker for the sample, there I observed a different token generated for each keystroke. var options = { types: ['(cities)'] }; var searchBox = new google.maps

Get list of nearby places from Google Places API (Swift 3)

ε祈祈猫儿з 提交于 2019-11-30 14:19:24
I am aware that there are similar threats already, however, the exact topic I am looking for seems to not have been touched. I am a programming newby, however, I achieved to get an app running, which fetches your current location, transforms the coordinates to an address and is able to store your location data in a tableView. Now I am looking for a way on how to fetch a list of nearby stores with the help of the Google Places API and display them in a table view . I could only find plenty of help on how to display POIs on a map view, however, I would only like to display those in a list (e.g.

Storing Data from Google Places API

送分小仙女□ 提交于 2019-11-30 14:00:00
Please don't mind if this question sounds a little silly! I am trying to learn more about Google Places API. I am interested in doing an implementation similar to airbnb.com (check the search function at the top, it shows "powered by google" in autosuggest). In our Address Form, we planned to use the autosuggest feature provided by Google Places API for filling the city, region and country (e.g https://www.airbnb.com/rooms/new ) Questions 1) Once someone selects a Place in the "City" field, what exactly are we allowed to store in ourdatabase from the fetched Google data? Can we store the city

Google places api restaurant types

风流意气都作罢 提交于 2019-11-30 13:43:58
问题 When you search for a restaurant in Google places and go to the business profile (i.e.: https://plus.google.com/107507038669791289691/about?hl=en) the restaurant has a tag (in this case Mexican Restaurant). But when using the Google places api all I can see is a types list "types" : [ "restaurant", "food", "establishment" ] Anyone know if it's possible to get the tag "Mexican Restaurant" somehow? I know about the supported types (https://developers.google.com/places/documentation/supported