Torsten2217 / google-plus-platform

Automatically exported from code.google.com/p/google-plus-platform
0 stars 0 forks source link

Field 'currentLocation' is not provided in API result (or empty), while the field is cleary filled on the page. #620

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Fieldname: currentLocation
Example Page: "https://plus.google.com/100757134397830368498/about"
 - this page has nothing to do with me and serves only as an example.

Example API call:
https://developers.google.com/+/api/latest/people/get#try-it
userId: 100757134397830368498
field: currentLocation

Does produce an empty result. I also tried different fields, in case the 
current location is not provided by the field currentLocation. Other fields did 
not include the location information either (livedIn, etc...).

Original issue reported on code.google.com by atrioom on 24 Jul 2013 at 8:16

GoogleCodeExporter commented 9 years ago
That's actually interesting, because the page you linked to is not a real 
Google+ page but a Google+ Local page, which isn't really supported by the 
Google+ API yet, to my latest knowledge.

When I tried to access such data a while ago, it resulted in 404 errors instead 
of returning any information at all.

Original comment by scaryg...@gmail.com on 29 Jul 2013 at 9:27

GoogleCodeExporter commented 9 years ago
Regardless, when attempting to run this request against "me", with the oauth2 
turned on, I received a 200, with no body, no data. I am certain that location 
logging is turned on, and I have even gone so far as to add myself to the list 
of approved people to see my location in google plus. (although this should not 
be necessary, due to the oauth)

Original comment by JAustinP...@gmail.com on 29 Jul 2013 at 4:18

GoogleCodeExporter commented 9 years ago
Same problem here.  I can see peoples location from the G+ app and the API 
documentation says that "currentLocation" should be returned, but the field is 
not present in my profile or that of any of my fiends who are sharing their 
location with me on G+.

I was hoping to use this api to develop a better interface as, quite frankly, 
the UI for G+ locations on mobile is terrible e.g. no last update time or 
confidence display and the icons cover the map.  I was hoping to develop 
something like the old Latitude.  There is also no access to locations from the 
web client which makes no sense to me.

Hopefully Google are improving the application and have removed access to 
location from the API to stop others using it to develop something better in 
the mean time!  I can only hope....

Original comment by mparker...@gmail.com on 30 Jul 2013 at 10:47

GoogleCodeExporter commented 9 years ago
I also have same problem, person.getCurrentLocation() is not working(returning 
null) eventhough location information is publicly shared. I thik 
"person.getCurrentLocation()" should return latest "Cheched In" location, as we 
can get person's present city/current location from "person.getPlacesLived()" 
with ["primary":true].

Original comment by crsardar...@gmail.com on 31 Jul 2013 at 6:25

GoogleCodeExporter commented 9 years ago
If someone has you in a circle that they're sharing their location with this 
should return a the users "currentLocation" that reported by the new location 
services in google play services.

I can think of a couple of reasons why this might be blank...
- Google haven't got round to wiring it up yet.
- There are privacy concerns around letting a third party app have users 
location information, especially because it's location information from a user 
that may or may not have the third party app installed.

I think an app having to be OAuthed as a user is enough personally, I expect 
others may disagree.

Like mparker I too was hoping to bring back some of the features my friends and 
I miss from latitude, because right now google+ locations is an awful bodge.

Original comment by rald...@gmail.com on 9 Aug 2013 at 9:09

GoogleCodeExporter commented 9 years ago
We're going to need this field now that Google has canned Latitude and Latitude 
API.  I was able to pull up recent checkins by searching for my user's public 
activities:

GET 
https://www.googleapis.com/plus/v1/people/{YOUR_USER_ID}/activities/public?field
s=items(access%2Caddress%2Cgeocode%2Cid%2Ckind%2Clocation%2CplaceId%2CplaceName%
2Cpublished%2Cradius%2Ctitle%2Cupdated%2Curl%2Cverb)&key={YOUR_API_KEY}

But this still doesn't solve getting the user's current location. Additionally, 
with the release of new Google Maps on Android, I can no longer find a Check In 
option.

Original comment by mattslot...@gmail.com on 11 Aug 2013 at 12:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Indeed, pulling checkins is not good enough, any oauthed app can only load 
activities that are public or activities created by the oauthed app. I'd 
imagine most people don't post checkins publicly.

The only way to bring back latitude is for someone to build a completely 
seperate platform for keeping track of users/their friends and their locations.

Original comment by rald...@gmail.com on 11 Aug 2013 at 2:23

GoogleCodeExporter commented 9 years ago
Having the same issue, I opened a thread on stackoverflow :
http://stackoverflow.com/questions/17974426/google-api-get-profiles-currentlocat
ion

It seems it's not working at the moment, hope this will soon J

Original comment by frederic...@gmail.com on 19 Aug 2013 at 4:04

GoogleCodeExporter commented 9 years ago
Very impatient to get an answer on that!

Original comment by loicma...@gmail.com on 4 Sep 2013 at 2:08

GoogleCodeExporter commented 9 years ago
Absolutely impatient, too. If i provide data, I expect it to be retrievable, 
too. I fetched this link: https://developers.google.com/+/api/latest/people/get 
Also, no output for currentLocation.

Original comment by brayan.e...@gmail.com on 7 Sep 2013 at 9:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
So, I think Google is not interested in solving this "problem". It seems the 
government: "create trouble to sell facilities"

Original comment by carlosfi...@gmail.com on 23 Nov 2013 at 11:29

GoogleCodeExporter commented 9 years ago
I have the same problem...

Original comment by edgarfra...@gmail.com on 25 Nov 2013 at 7:33

GoogleCodeExporter commented 9 years ago
Hi, can we have some feedbacks from devs ? This issue has more than 3 months 
and there're no answers... shall we continue to hope to have this feature 
working or not ?

Original comment by lucas.mi...@gmail.com on 29 Nov 2013 at 3:34

GoogleCodeExporter commented 9 years ago
Yes, answer from dev team would be more than appreciated. Thank you

Original comment by loic.pav...@gmail.com on 29 Nov 2013 at 8:36

GoogleCodeExporter commented 9 years ago
I'm having this issue too.

You finally implemented location sharing in the iOS app, but I still can't get 
this data programatically.

What gives! :(

Original comment by erikgran...@gmail.com on 18 Dec 2013 at 12:19

GoogleCodeExporter commented 9 years ago
Location sharing in Android works like a charm but in the iOS app isn't working 
very well. Seems like the background process keep sleeping until reopen app. 
Right?

Original comment by carlosfi...@gmail.com on 23 Dec 2013 at 11:38

GoogleCodeExporter commented 9 years ago
Any solutions on this yet?

Original comment by basava...@gmail.com on 4 Jan 2014 at 11:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm getting blank results for currentlocation also, I would really like this 
resolved.

Original comment by marty...@gmail.com on 13 Jan 2014 at 1:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Still no answer?

Original comment by m.krzyz4...@gmail.com on 20 Jan 2014 at 11:57

GoogleCodeExporter commented 9 years ago
I've spent days trying to access the "currentLocation" field. No success. 
It would be nice to get a statement from a developer at least indicating if 
it's possible at all.

Original comment by johannes...@gmail.com on 23 Jan 2014 at 2:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It seems like #9 frederic (http://code.google.com/u/115323488016701841065/) had 
some success at stackoverflow at getting some answers there.
Look it up:
http://stackoverflow.com/questions/17974426/google-api-get-profiles-currentlocat
ion

Seems like you have to specifically request the geo-location via an extra 
auth-token. Another variant being, that the user must have the geo location 
specifically shared. No guarantee on that information though, I could'nt test 
it. See StackOverflow ;)

Original comment by atrioom on 23 Jan 2014 at 2:37

GoogleCodeExporter commented 9 years ago
I've seen the thread. But I shared my location publicly in the Google+ 
settings. All I would like to do is access my own location, not other's.

Original comment by johannes...@gmail.com on 23 Jan 2014 at 2:48

GoogleCodeExporter commented 9 years ago
The documentation linked 
(https://developers.google.com/+/api/oauth#login-scopes)
Does not provide a scope for specifically requesting access to location

Original comment by rald...@gmail.com on 23 Jan 2014 at 2:48

GoogleCodeExporter commented 9 years ago
Oh come on. I just spent a day trying to get this to work. Finally I stumbled 
to this thread and found out that nobody else got it to work either. Get it 
together Google.

Original comment by gel...@gmail.com on 21 May 2014 at 8:52

GoogleCodeExporter commented 9 years ago
I'm having this issue too.

Is there no answer yet? 

Original comment by beliwork...@gmail.com on 4 Jun 2014 at 11:50

GoogleCodeExporter commented 9 years ago
Nope - nothing.

You would hope that Google would provide some sort of support for their 
developers.

This support only appears to be a forum thread where we can all say that we 
have the same problem and have it ignored for a year.

Original comment by erikgran...@gmail.com on 4 Jun 2014 at 2:07

GoogleCodeExporter commented 9 years ago
I refer you to this post in the G+ Developers community.
https://plus.google.com/106416716945076707395/posts/VDBxM9KtQUm

Original comment by julian.b...@gmail.com on 4 Jun 2014 at 3:27

GoogleCodeExporter commented 9 years ago
Please fix this. Tried everything and got nothing. currentLocation is never 
returned even though it's set as public. Very annoying especially as it's in 
the documentation.

Original comment by jason.gi...@gmail.com on 19 Aug 2014 at 10:53

GoogleCodeExporter commented 9 years ago
As of August 13, currentLocation is no longer listed as a valid field for the 
People API. https://developers.google.com/+/api/latest/people

Original comment by MailerDa...@gmail.com on 25 Aug 2014 at 1:50

GoogleCodeExporter commented 9 years ago
Lol. Great solution. :-\

Any chance we could actually retrieve this data?

Original comment by r...@vanmiddlesworth.org on 25 Aug 2014 at 2:09

GoogleCodeExporter commented 9 years ago
"Lol. Great solution."

I so much agree ;-)

Original comment by loic.pav...@gmail.com on 25 Aug 2014 at 2:59

GoogleCodeExporter commented 9 years ago
Hi Guys, 
came here looking also for the currentLocation field. I´m using this code to 
get the user´s current location, not sure if this is the best option but it 
works :):

Note: "r" holds the client.request() response data (API call)
                                r.placesLived.forEach(function(l) {
   if (l.primary) 
    console.log(l.value);
});

Hope this helps.
Cheers.

Original comment by nicohasl on 16 Oct 2014 at 12:21

GoogleCodeExporter commented 9 years ago
@nicohasl - We're not trying to grab the current location as in where their 
house currently is. We are trying to grab their actual physical location (as 
shared in their Google+ app) at the time of the API request.

Thanks for the suggestion though :)

Original comment by erikgran...@gmail.com on 16 Oct 2014 at 2:42

GoogleCodeExporter commented 9 years ago
As this is unlikely to be fixed,  an open solution may be owntracks. 

It is a client for mqtt based publishing of lat/lon/battery etc.
There are a number of mqtt servers available,  and mqtt clients for a wide 
variety of languages like ruby. 

The ios/Android clients could probably be forked and customized to point to a 
private,  secure instance.

For Enterprises with the mobile management tools to ensure Deployment this is a 
handy alternative to fleet tracking or maps coordinate - obviously a bit more 
friction and less suitable for other use cases.

Original comment by daniel.o...@gmail.com on 26 Oct 2014 at 3:37

GoogleCodeExporter commented 9 years ago
"As of August 13, currentLocation is no longer listed as a valid field for the 
People API. https://developers.google.com/+/api/latest/people"

It is, on 25th November, still listed in the field editor at the bottom of:

https://developers.google.com/+/api/latest/people/get

and it still doesn't work there. I suppose I can just scrape the lat-long out 
of the map url on the user's g+ profile page. Delightful.

Original comment by sahmee...@gmail.com on 25 Nov 2014 at 12:30

GoogleCodeExporter commented 9 years ago
Keep in mind it isn't an ordinary HTML page, most of the formatting is built 
client side, including assembling that URL from an array passed to an 
AF_initdata() call. So scraping data from it is unintuitive at the least, and 
the markers that identify which data is the location may change even if the 
link built does not change. (or you need to fully process the client side 
Javascript before scraping.)

Original comment by LaBlua on 25 Nov 2014 at 6:16

GoogleCodeExporter commented 9 years ago
Hi, is there any other idea to get the user's current location.

Original comment by easy...@gmail.com on 25 Apr 2015 at 5:03