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 sha开发者_开发问答re 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?
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
精彩评论