google-places-api

PHP: Google Places API return REQUEST_DENIED

爷,独闯天下 提交于 2019-12-11 19:14:10
问题 I am getting "REQUEST_DENIED" when using Google places API to add a place. I had searched previous thread and I am pretty sure the key is correct, as it can be used for Google Places Search. Probably it's something to do with my coding? Here is my PHP coding: $jsonpost = '{ "location": { "lat": ' .$coordinate[0] .', "lng": ' .$coordinate[1] . ' }, "accuracy": 50, "name": ' . $locator_name .'", "types": ["other"], "language": "en" }'; $url = "https://maps.googleapis.com/maps/api/place/add/json

Adequate Places API for travel app

好久不见. 提交于 2019-12-11 18:43:27
问题 I'm looking for a place API that can be used with a map API. Here are three APIs I've been thinking about: - Google Maps/Places: https://developers.google.com/maps/ - Microsoft Bing: https://www.microsoft.com/maps/developers/mapapps.aspx - Nokia Maps: http://api.maps.nokia.com/2.1.0/devguide/overview.html They seem to be likely to give good results. The application I'm going to work on is on travel information. So we would like to use the best API for finding sightseeing, accommodations,

Google places api request denied error

半城伤御伤魂 提交于 2019-12-11 18:32:51
问题 I am using google palces api for autocomplete textview in my android project. I have enabled the api key. I am using a server key but all the time I have this error when I call the service through a browser : { "error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console", "predictions" : [], "status" : "REQUEST_DENIED" } And same error in android debugger. 回答1: As

Google Place API author_name Anonymous Problem

时光怂恿深爱的人放手 提交于 2019-12-11 17:54:51
问题 Just notice Google Place API has this update, the problem is all of the names are changed to A Google user and it looks like including people is not posted by anonymous: author_name the name of the user who submitted the review. Anonymous reviews are attributed to "A Google user". https://developers.google.com/places/web-service/details#PlaceDetailsResults I am using a simple JS plugin to display reviews on a website, right now all of the Review author names are changed to A Google user :

Android get lat&long from google address

耗尽温柔 提交于 2019-12-11 16:39:19
问题 I have implemented Google Place API autocomplete functionality for my application like this: https://developers.google.com/places/training/autocomplete-android No it just makes a Toast with that address. How can I get the latitude and longitude from the selected address? 回答1: Use the method public List<Address> getFromLocationName (String locationName, int maxResults) from Android Geocoder API, pass in the location name and the maximum number of results you would like and you should be good

Google Place API not working for Android Key

南楼画角 提交于 2019-12-11 16:32:34
问题 I am using google autocomplete place api. https://maps.googleapis.com/maps/api/place/autocomplete/json?key="My Android Key"&input=Mg%20Ro&components=country:IN the key i generated from console is Android-key The API i enabled in Google API Console are Google Places API Web Service Google Places API for Android Google Maps Android API and SHA-1 finger print are of debug-keystore. Now on hitting, I'm getting the output for this link is {"error_message":"This IP, site or mobile application is

google places api/google maps: “listings by…” doesn't get reset-keeps cluttering the map area [closed]

寵の児 提交于 2019-12-11 16:27:52
问题 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 6 years ago . I have a website pune.org that uses places API. As you can see however if I select markers the Listings by lines just keep getting added and eventually make the entire map area useless. How can I reset the Listings by or ideally to just show Listings by of the marker that is currently selected? Thanks, Sandeep

Google Places API - How to limit the search limit to just one city

邮差的信 提交于 2019-12-11 16:17:16
问题 I wont to limit the search limit to just one city (e.g "New York") and I need help with componentRestrictions options. Thanks! <script type="text/javascript"> function initialize() { var options = { types: ['address'], componentRestrictions: {country: "us", locality: "new york"} }; var input = document.getElementById('searchTextField'); var autocomplete = new google.maps.places.Autocomplete(input, options); } google.maps.event.addDomListener(window, 'load', initialize); </script> 回答1: You can

AngularJS form validation inside google places directive

爱⌒轻易说出口 提交于 2019-12-11 14:16:45
问题 I have an input field that is create by the following directive: .directive('googlePlaces', function(){ return { restrict:'E', replace:true, scope: {location:'='}, template: function (elem, attrs) { return '<div><div class="form-group" ng-class="{ \'has-error\' : '+attrs.form+'.google_places_ac.$invalid }"><label>Address*</label><input id="google_places_ac" required name="google_places_ac" type="text" class="form-control" placeholder="Address" /><p class="help-block" ng-message="required" ng

Google Places API PlaceFilter

℡╲_俬逩灬. 提交于 2019-12-11 12:18:49
问题 I am using Google Places API for Android and am trying to limit the results to only show Restaurants. I have included a PlaceFilter and seems to be correct but doesn't seem to be applying the filter and giving other results aside from Restaurants. See code: ArrayList<String> restrictToRestaurants = new ArrayList<>(); restrictToRestaurants.add(Integer.toString(Place.TYPE_RESTAURANT)); PlaceFilter pf; pf = new PlaceFilter(false, restrictToRestaurants); PendingResult<PlaceLikelihoodBuffer>