Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Google Latitude API to get friends' locations

I'm thinking about writing a perl script that will use the Google Latitude API to track a bunch of people doing a big bike ride.

The idea is that we all share location, then this script uses the API, logs in as me and polls google for everyone's position every 60 seconds or so.

But, I've just been looking over the Google Latitude API and it looks like I can only get and set my own location. Is that the case?

like image 920
aidan Avatar asked Jul 01 '11 23:07

aidan


1 Answers

Each of your users will need to authenticate using OAuth to your application. Once they have done that, you use the latitude API on each individual account to pull the necessary data. There is no way to get data on a user who has not individually allowed your application to access their data (that is, no way to poll your friends locations).

http://code.google.com/apis/latitude/faq.html#oauthaccess

like image 156
Paul McMillan Avatar answered Oct 04 '22 01:10

Paul McMillan