google-places-api

Android - Google Places API - No “reviews” Array

旧街凉风 提交于 2019-11-28 12:55:11
问题 So I'm running the following Google Places API call: https://maps.googleapis.com/maps/api/place/search/json?location=34.0467359,-118.441764&rankby=distance&sensor=true&key=MY_API_KEY&types=restaurant part of my JSON output is: "results" : [ { "geometry" : { "location" : { "lat" : 34.047332, "lng" : -118.443431 } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png", "id" : "03ed19ca32b20080897e31095e6eed2715cde819", "name" : "Del Taco", "opening_hours" : { "open_now

How to set Google API key restriction - HTTP referrers

放肆的年华 提交于 2019-11-28 12:51:36
Google API key restriction - HTTP referrers I put my Azure website url xxxx.scm.azurewebsites.net there but doesn't work (Google Places API Web Service stops working). localhost:44300 doesn't work either. I have to set key restriction to 'None', then Google Places API Web Service will work. What did I do wrong? Web Service is supposed to be executed on backend servers, so the correct restriction for web services is IP restriction. HTTP referer restriction is used for client side services like Google Maps JavaScript API, it won't work with web services. To accept requests over localhost and

How to resolve PLACES_API_ACCESS_NOT_CONFIGURED in Place Autocomplete Fragment

心不动则不痛 提交于 2019-11-28 12:46:00
问题 I'm having problems with Android Google Places API - autocomplete feature. I use the same key that I used for Android Google Maps API but it is not open place fragment. Its only show Maps but when open a Place Autocomplete Fragment but its open and automatically close and show PLACES_API_ACCESS_NOT_CONFIGURED error. Please help me out to this issue and show the right to handle the issue. Here My Manifest XML: <meta-data android:name="com.google.android.geo.API_KEY" android:value=

Google Play Security alert about Google Cloud Platform (GCP) API keys

喜夏-厌秋 提交于 2019-11-28 11:09:54
问题 We were using a GCP API key on multiple platforms (Android, iOS, Web) for Google map, Location search (api/place/autocomplete) , static Google Map, etc. Now I wanted to create a new/separate Key for Android App so I can add appropriate restrictions like package name SHA1 and used APIs. I've created a new key, Changed it into the App after that map is working fine but Location search API is kept throwing an exception- This IP, site or mobile application is not authorized to use this API key.

Get list of all intersections in a city

强颜欢笑 提交于 2019-11-28 10:17:20
What is the best source and way to get a list of all intersections in a major city? tyr If one doesn't mind a few false positives the following Overpass API script gets road intersections out of OpenStreetMap data pretty easily: http://overpass-turbo.eu/s/QD (the script can't detect false intersections – where only two lines meet, though, e.g. when a road is represented by multiple way objects in the OSM data) In case that the script goes offline a more readable version directly here: Dependent on which kind of ways you are interested in, add the types of ways which should not count as

Google Autocomplete API - format output result

耗尽温柔 提交于 2019-11-28 09:12:35
问题 I'm trying to implement Google Places API, so here is my code: <!DOCTYPE html> <html> <head> <script src="http://codeorigin.jquery.com/jquery-1.10.2.min.js"></script> <script src="//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&location=0,0&radius=20000000&language=de"></script> <script> $(document).ready(function() { var el = $('#street').attr("placeholder", "") , autocomplete = new google.maps.places.Autocomplete( ( el.get(0) ), { types: ['geocode'] } ); el.bind(

Google Places Api sort by distance

本秂侑毒 提交于 2019-11-28 08:46:22
Currently developing an Android application that returns the closest 20 location to the users current location. Google Places API is returning ~20 places close to the users location but not the closest 20 sorted by distance. Looking at the Google Places API Documentation does not show anything that I can see to be incorrect. GetPlaces.java String types = "accounting|airport|amusement_park|aquarium|art_gallery|atm|bakery|bank|bar|beauty_salon|bicycle_store|book_store|bowling_alley|bus_station|cafe|campground|car_dealer|car_rental|car_repair|car_wash|casino|cemetery|church|city_hall|clothing

InvalidValueError: not an instance of HTMLInputElement

孤街浪徒 提交于 2019-11-28 08:12:35
FYI, I'm not a JavaScript Ninja but felt like I'll become one when I did a lot of things based on Google Maps recently. I implemented a map. User can search for google places and place a marker for it. there's a text box for that. Or user can click on the map to place a marker to the place he's looking for or drag the marker. Code remains the same. Design changed. Input field's id and name also same. No change to JS code. But this thing ain't working. Here's the website Google map is producing an error. InvalidValueError: not an instance of HTMLInputElement I tried solution given here But

Restrict autocomplete results by setBoundsBias

橙三吉。 提交于 2019-11-28 08:00:08
问题 I am using setBoundsBias for Restrict autocomplete results in google map autocompletePlace, But the result contains places out of range. what is the problem ? { final int PLACE_AUTOCOMPLETE_REQUEST_CODE = 1; AutocompleteFilter typeFilter = new AutocompleteFilter.Builder() .setCountry("IR") .build(); try { Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY) .setBoundsBias(new LatLngBounds(new LatLng(38.051183, 46.211586), new LatLng(38.132784, 46.392860)))

AutoCompleteTextView with Google Places shown in ListView just like Uber

流过昼夜 提交于 2019-11-28 07:45:20
I need to make screen similar to this. I think it has autocompletetextview and listview to display returned results. Google Place API is used here to auto suggest places and listview adapter is updated accordingly. Please any kind of help is appreciated. Thanks in advance. Checked android sample project on AutoComplete for places too. But it is not having any listview to display results. Instead it shows results in autocompletetextview spinner. Any modification we can do with that project Link to google sample project You can achieve this exactly by using EditText and ListView , and not