google-places-api

Places API not accepting referer

一世执手 提交于 2019-12-24 06:59:11
问题 I've read almost all posts refering to this issue. Most of the answers were "Use Javascript API instead". I don't think that is a valid answer. I'm trying to set the referers on the Google's API Console so I can test both locally and from my dev server. This is my API key from the Google's API console: This is my request: Request URL:https://maps.googleapis.com/maps/api/place/autocomplete/json?input=a&sensor=false&key=AIzaSyABBKjubUcAk69Kijktx-XXXXXXXXXX Accept:*/* Origin:http://localhost

Places API not accepting referer

十年热恋 提交于 2019-12-24 06:59:07
问题 I've read almost all posts refering to this issue. Most of the answers were "Use Javascript API instead". I don't think that is a valid answer. I'm trying to set the referers on the Google's API Console so I can test both locally and from my dev server. This is my API key from the Google's API console: This is my request: Request URL:https://maps.googleapis.com/maps/api/place/autocomplete/json?input=a&sensor=false&key=AIzaSyABBKjubUcAk69Kijktx-XXXXXXXXXX Accept:*/* Origin:http://localhost

Place API - getting place photo as marker icon

一世执手 提交于 2019-12-24 06:44:58
问题 I follow this guide https://developers.google.com/maps/documentation/javascript/places#places_photos to create place photo as marker icon. This is my map initialization code: var map; function initMap() { // Create a map centered in Pyrmont, Sydney (Australia). map = new google.maps.Map(document.getElementById('map'), { center: {lat: -6.920812, lng: 107.604116}, zoom: 13 }); var request = { location: map.getCenter(), radius: '5000', type: ['shopping_mall'] }; var service = new google.maps

Getting nearby localities from lat long using Google place API

こ雲淡風輕ζ 提交于 2019-12-24 03:51:07
问题 I'm using google place API i.e https://maps.googleapis.com/maps/api/place/search/json?location=33.7167,73.0667&radius=500&type=funeral_home&sensor=false&key=AIzaSyDN1QX-gWUR-mIYo_D21PNFLHHpNQkIkGU Above link gives me all the nearby locations of particular type. i.e types=food. now i will get all the cafes and restaurants nearby with their respective addresses. Is there anyway that can give me only areas or localities nearby my coordinates (lat, long)? Thanks in advance. 回答1: I had a similar

Getting nearby localities from lat long using Google place API

拈花ヽ惹草 提交于 2019-12-24 03:51:04
问题 I'm using google place API i.e https://maps.googleapis.com/maps/api/place/search/json?location=33.7167,73.0667&radius=500&type=funeral_home&sensor=false&key=AIzaSyDN1QX-gWUR-mIYo_D21PNFLHHpNQkIkGU Above link gives me all the nearby locations of particular type. i.e types=food. now i will get all the cafes and restaurants nearby with their respective addresses. Is there anyway that can give me only areas or localities nearby my coordinates (lat, long)? Thanks in advance. 回答1: I had a similar

Google Places Autocomplete, filter by establishments/restaurants

瘦欲@ 提交于 2019-12-24 00:23:23
问题 I can use the API to search by establishments as shown in their guides(https://developers.google.com/places/ios-api/autocomplete), however I also know that a GMSPlace has a type, which can be a coffee shop/restaurant. The ios api doesn't seem to have a simple "place search" like the web service does, it's either PlaceID search, or autocomplete. Can I use the Autocomplete and filter my results based on the type? 回答1: You can use GMSAutocompleteFilter to filter out establishment. establishment

How to get more than 5 reviews from G+ Places?

守給你的承諾、 提交于 2019-12-24 00:11:56
问题 I found some threads here telling that Google API (places/+/etc.) do not allow more than 5 reviews in the response. However, it appeared most of those were as old as from 2012. Is this still the case? Is there a difference whether I am the owner of the page/place I want to get reviews for? Most appear to operate on place ID but if I want to pull the reviews of my own business, can that be done or is it subject to the same 5 limit that appears here https://developers.google.com/places/web

Android Place Picker with API KEY created after January 29, 2019

会有一股神秘感。 提交于 2019-12-23 22:14:41
问题 I have an app which uses (or used...) Place Picker. As you may know it is deprecated since January 29th, 2019. I deleted my old "Places SDK for Android" API in Google Cloud plarform some time ago. Today I wanted to create new one but now I see that it is no more available there, only "Places API" is available. On migration tutorial you can see this information: IMPORTANT: The Place Picker is deprecated as of January 29, 2019. This feature will be turned off on July 29, 2019, and will no

how can I make API KEY for Google Places api?

陌路散爱 提交于 2019-12-23 17:07:05
问题 Here I have one problem that I can't access google places api service in android to find out nearby places. i have read many tutorials but none of that clearly mention how to make a browser key or android key? here i have tried all these. 1) make a browser key and pass in this query https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=YourAPIKey 2) made an android key and pass that key in same query

Google Places API AutocompleteSupportFragment Null pointer Exception

霸气de小男生 提交于 2019-12-23 16:51:11
问题 I am using the Google Places API to get an autocomplete support fragment to get a search bar with location suggestions. I followed the tutorial given here Places Autocomplete This is the XML code <fragment android:id="@+id/autoCompleteFragment" android:layout_width="match_parent" android:layout_height="match_parent" android:name="com.google.android.libraries.places.widget.AutocompleteSupportFragment" /> and this is the Java code // Initialize the AutocompleteSupportFragment.