使用 Google Latitude API 獲取朋友的位置 (Using Google Latitude API to get friends' locations)


問題描述

使用 Google Latitude API 獲取朋友的位置 (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?

‑‑‑‑‑

參考解法

方法 1:

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

(by aidanPaul McMillan)

參考文件

  1. Using Google Latitude API to get friends' locations (CC BY‑SA 3.0/4.0)

#google-latitude #perl






相關問題

Otentikasi permanen Google Latitude API untuk akun tertentu (Google Latitude API permanent auth for specific account)

無法從 Google Apps 腳本連接到 Google Latitude API (Can't connect to Google Latitude API from Google Apps Script)

如何在谷歌地圖API中獲取高速公路和道路的緯度和經度 (How to get Latitude and Longitude of highways and roads in Google maps API)

如何修復谷歌地圖上的標記並移動地圖? (How to fix marker on google map and move map?)

使用 Google Latitude API 獲取朋友的位置 (Using Google Latitude API to get friends' locations)

尋找我和朋友之間最近的距離 (Finding nearest distance between me and friends)







留言討論