google-places-api

Google place Api PlaceDetails Photo Reference

无人久伴 提交于 2019-11-28 07:27:05
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 Please take a look at documentation here: https://developers.google.com/places/documentation/photos They've just announced this new Place Photos feature In short this is how you should use this new feature: https://maps

Google Places API for Android Error: Status{statusCode=NETWORK_ERROR, resolution=null}

牧云@^-^@ 提交于 2019-11-28 07:23:15
问题 I have created a project under google developer console and wanted to use Google Places API for Android. I have enabled the API and integrated into my android application as per the guidelines on Google developer website (https://developers.google.com/places/android/start). The API is giving this error and after hours (and days) of debugging and searching the internet I couldn't narrow down the problem. Any leads would be appreciated about why this error is coming up. Error: Status{statusCode

EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) with dataTaskWithUrl

醉酒当歌 提交于 2019-11-28 06:04:55
问题 I'm using the google places api to search for nearby places. However, I only want places of specific types. The code (seen below) works when I specify just one type, but when I add a second my code runs and promptly give me a EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) error on this line: session.dataTaskWithURL(url!, completionHandler: { (data : NSData!, response : NSURLResponse!, error : NSError!) -> Void in I know the url is valid. I can plug it into the browser and see the json

How to get Distance Kilometer in android?

浪子不回头ぞ 提交于 2019-11-28 03:53:08
问题 I am very new to Google maps I want calculate the distance between two places in android. For that I get the two places lat and lag positions for that I write the following code: private double getDistance(double lat1, double lat2, double lon1, double lon2) { double dLat = Math.toRadians(lat2 - lat1); double dLon = Math.toRadians(lon2 - lon1); double a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) * Math.sin(dLon / 2) * Math.sin

Places Autocomplete Status Code 9001

自古美人都是妖i 提交于 2019-11-28 03:44:08
问题 I was trying to get places prediction using the Places Autocomplete API from Google Play Services, but this is the status I got: Status{statusCode=unknown status code: 9001, resolution=null} Any idea what's going on? 回答1: Here is the solution Enable "Places API for Android " in the API console Note: Somehow, the switch to enable it can only be found in the old style console. Update You can find this option by typing "Places API for Android" in search bar. 回答2: I also have the same problem. I

Turn AutoCompleteTextView into a SearchView in ActionBar instead

大憨熊 提交于 2019-11-28 02:50:16
I have a AutoCompleteTextView which gives user auto-completion search result from Google Places API . Once I was done I discovered SearchView and how it can be placed in the ActionBar . I checked out the SearchView example provided by google and added it to my application as a starting point (it lists the installed applications) but I don´t know how to proceed from here. I want to have the same functionality as AutoCompleteTextView but use the SearchView instead. Any suggestion? The whole class is provided below. import java.io.BufferedReader; import java.io.IOException; import java.io

To get more than 5 reviews from google places API

妖精的绣舞 提交于 2019-11-27 23:35:27
I am doing an application where I extract the google reviews using google places API.When I read the document related to it in " https://developers.google.com/maps/documentation/javascript/places ",I found out that I could get only 5 top reviews.Is there any option to get more reviews. There is a feature request for that: Issue 7630: Response to Include More Than 5 Reviews ─ I'd recommend you "star" it to receive updates. In order to have access to more than 5 reviews with the Google API you have to purchase Premium data Access from Google. That premium plan will grant you access to all sorts

How to find Location near by my Current location?

亡梦爱人 提交于 2019-11-27 23:02:33
问题 I need some idea about "How to find Hospital,School,Restaurant near by my location" using android,How is possible? 回答1: Step by step, Google place api are used to access near by landmark of anloaction Step 1 : Go to API Console for obtaining the Place API https://code.google.com/apis/console/ and select on services tab on the place service now select API Access tab and get the API KEY now you have a API key for getting place Now in programming *Step 2 * : first create a class named Place.java

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

十年热恋 提交于 2019-11-27 22:45:22
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 android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95

Google Places AutoComplete on iOS - Can't Load Search Results - Try Again

北战南征 提交于 2019-11-27 22:24:11
I am posting this here because I don't know where else to post this. Today, our application is no longer returning results for Google Places API. We are seeing the request go through on the Google Developers Console, but all phones are returning no results. This number is climbing for today and each one of these users are stuck in the login / onboarding flow of my app. Update (Closer Image for the last hour): Here is an example flow of what I am seeing on all iPhones we are testing and receiving the same from our users. They search for their location. They might or might not see some