google-places-api

REQUEST DENIED with Google Places API KEY for Server Web used in an Android application

北慕城南 提交于 2019-11-27 05:29:56
I'm trying to get info from the API of Google Places for an Android application. To do that, first I have enabled this API in my Google Account. Second, I have created an API KEY for Browser. I already have an API KEY Server due to another API. So, in my code I have been tested with these two Keys and with both I've got always the same result!!! { "error_message" : "This service requires an API key.", "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED" } The code that I'm using to make the call are ... @Override protected String doInBackground(LocationService... ls) {

Google's Places API and JQuery request - Origin http://localhost is not allowed by Access-Control-Allow-Origin

試著忘記壹切 提交于 2019-11-27 04:53:04
I doing some testing for a project I got in mind which involves using places nearby. So I went with the big guy and started messing around with Google's Places Api. I'm using leaflet with openstreet tiles for my map. Now everything is fine until I try to use the dang thing. var lat = coords.lat; var lng = coords.lng; var apiUrl = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"; var data = { key: 'AIzaSyBl8bmE8kQT7RjoXhP6k2yDti44h9-fSUI', location: lat+','+lng, radius: '10000', sensor: 'false', rankby: 'prominence', types: 'bar|night_club' }; $.ajax({ url: apiUrl, type: 'POST',

RuntimeExecutionException: com.google.android.gms.common.api.ApiException: 13: ERROR Places API

喜夏-厌秋 提交于 2019-11-27 04:36:34
问题 I am getting the following exception while trying out google places API to get likelihood places for Current Place in android. Process: me.nabeelkottol.linkedinplaces, PID: 2995 com.google.android.gms.tasks.RuntimeExecutionException: com.google.android.gms.common.api.ApiException: 13: ERROR at com.google.android.gms.tasks.zzn.getResult(Unknown Source) at me.nabeelkottol.linkedinplaces.MainActivity$1.onComplete(MainActivity.java:71) at com.google.android.gms.tasks.zzf.run(Unknown Source) at

retrieve points of interests (attractions/tourist places) of a place/country using google places api

ε祈祈猫儿з 提交于 2019-11-27 04:28:40
问题 I want to retrieve points of interests of a place/country through google places api say 'points of interests in london'. I want the results to be same as I google search it like [here][1. I've used something like this 'https://maps.googleapis.com/maps/api/place/radarsearch/json?location='+str(lat)+','+str(long)+'&radius=500&type=tourist&rankby=prominence&key=API_KEY') where lat,long are respective latitude,longitude of that place/country. But the resulting json file does not retrieve points

using enableAutoManage() in fragment

浪尽此生 提交于 2019-11-27 04:04:25
Is there another way to connect Google API client? I use auto complete places and I have to use this code some where in MYFRAGMENT mGoogleApiClient = new GoogleApiClient.Builder(MainActivity.this) .addApi(Places.GEO_DATA_API) .enableAutoManage(this, GOOGLE_API_CLIENT_ID, this) .addConnectionCallbacks(this).build(); My problem with enableAutoManage(this, GOOGLE_API_CLIENT_ID, this) .addConnectionCallbacks(this).build(); I can't deal with it because when I replace this with getActivity() I have many problem with casting thanks for help and sorry if this question is silly. Matthew Pape If you

Get list of all intersections in a city

心不动则不痛 提交于 2019-11-27 03:31:24
问题 What is the best source and way to get a list of all intersections in a major city? 回答1: 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:

Request main road / curbside StreetView panoramas instead of back alleys from API

*爱你&永不变心* 提交于 2019-11-27 02:15:46
Is there a way to request main road Google StreetView panorama data instead of back alley panorama data for a given location (latitude/longitude)? I'm using the Google Maps Javascript API to retrieve a street view panorama from a home address supplied by our users. It works quite well for most addresses I've tried, but I'm noticing a lot of properties in California also have street views for back alleys, and the API seams to be consistently returning the back alley panorama instead of the main road (front of property) panorama. I don't want to show the user a back alley panorama of their home,

InvalidValueError: not an instance of HTMLInputElement

有些话、适合烂在心里 提交于 2019-11-27 02:06:25
问题 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

Google place Api PlaceDetails Photo Reference

耗尽温柔 提交于 2019-11-27 01:50:03
问题 I am using Google Place Api where is on some results "photo_reference" (similar to "reference") value. I cannot find any mention about that how to use it to get that photo. I know how to use "reference" to get PlaceDetail and I am sure that usage of photo_reference will be similar, but I cannot find JSON/XML URL for this photo_reference request. Thank you for any help. Pavel 回答1: Please take a look at documentation here: https://developers.google.com/places/documentation/photos They've just

Google Place API - No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 01:17:26
This question already has an answer here: How to use CORS to implement JavaScript Google Places API request 1 answer I am using Google Place API. What I want to get suggestion of place for type helping. So, what I have done is- var Google_Places_API_KEY = "AIzaSyAK08OEC-B2kSyWfSdeCzdIkVnT44bcBwM"; //Get it from - https://code.google.com/apis/console/?noredirect#project:647731786600:access var language = "en"; //'en' for English, 'nl' for Nederland's Language var Auto_Complete_Link = "https://maps.googleapis.com/maps/api/place/autocomplete/json?key="+Google_Places_API_KEY+"&types=geocode