API call that returns Location based on Timestamp

176 views
Skip to first unread message

rowntreerob

unread,
Mar 17, 2012, 11:06:02 AM3/17/12
to Google Latitude API
If i look at my location History ( a set ) im given the option of
displaying all the timeStamps over in the left side of the display. Im
also given a timeline on the bottom where i can use the mouse to
select a position on the timeline. Both of these visual inspections
provide a single answer to " what was my position at UTC time
hh:mm:ss:mmm?" Looking at the current API, if i want a point location
matching Time X, i have to process the entire set of History
locations, using my own 'best matching point based on correlated
Timestamp" to narrow down the set to just one point. Seems like
something google can do better than me....

Davy

unread,
Mar 28, 2012, 7:38:24 AM3/28/12
to google-la...@googlegroups.com
I think that API call already exists.

http://code.google.com/apis/latitude/v1/using_rest.html#RetrievingHistory

The locationId corresponds with the timestamp of that location. 
A simple REST call like this GET https://www.googleapis.com/latitude/v1/location/1274057512199
will give you the location corresponding to the UTC timestamp 1274057512199.

Is that what you were looking for ?

Chanachai Norasing

unread,
May 1, 2012, 2:54:13 PM5/1/12
to Google Latitude API


On Mar 28, 6:38 pm, Davy <ddewa...@gmail.com> wrote:
> I think that API call already exists.
>
> http://code.google.com/apis/latitude/v1/using_rest.html#RetrievingHis...
>
> The locationId corresponds with the timestamp of that location.
> A simple REST call like this GEThttps://www.googleapis.com/latitude/v1/location/1274057512199

Chanachai Norasing

unread,
May 1, 2012, 3:20:26 PM5/1/12
to Google Latitude API

Robert Rowntree

unread,
Jun 13, 2012, 1:34:18 AM6/13/12
to google-la...@googlegroups.com
below are available calls on oauth playground using this api.... GetLocation is a bit confusing as to the last node. Is it a timestamp or a locationID??\
if its really a timestamp then you ought to be able to add/subtract a couple of milliseconds from it and get the exact same response.. I wonder if you can do that?

Google Latitude API v1:
  Delete CurrentLocation - DELETE https://www.googleapis.com/latitude/v1/currentLocation
  Delete Location - DELETE https://www.googleapis.com/latitude/v1/location/{locationId}
  Get Location - GET https://www.googleapis.com/latitude/v1/location/{locationId}
  List Location - GET https://www.googleapis.com/latitude/v1/location
  Insert Location - POST https://www.googleapis.com/latitude/v1/location
  Insert CurrentLocation - POST https://www.googleapis.com/latitude/v1/currentLocation
  Get CurrentLocation - GET https://www.googleapis.com/latitude/v1/currentLocation
Reply all
Reply to author
Forward
0 new messages