Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion API call that returns Location based on Timestamp

Received: by 10.68.196.232 with SMTP id ip8mr14131105pbc.6.1339565660273;
        Tue, 12 Jun 2012 22:34:20 -0700 (PDT)
X-BeenThere: google-latitude-api@googlegroups.com
Received: by 10.68.229.8 with SMTP id sm8ls18242294pbc.0.gmail; Tue, 12 Jun
 2012 22:34:19 -0700 (PDT)
Received: by 10.68.129.194 with SMTP id ny2mr899883pbb.17.1339565659409;
        Tue, 12 Jun 2012 22:34:19 -0700 (PDT)
Date: Tue, 12 Jun 2012 22:34:18 -0700 (PDT)
From: Robert Rowntree <rowntree...@gmail.com>
To: google-latitude-api@googlegroups.com
Message-Id: <daefbd10-dd5b-407f-aaea-4f720de8a2a9@googlegroups.com>
In-Reply-To: <a70e5322-6339-47cf-808c-d14144d6d582@jx17g2000pbb.googlegroups.com>
References: <064a2648-2140-48d8-9f28-786dd3793e3d@t6g2000pba.googlegroups.com> <17700602.702.1332934705021.JavaMail.geo-discussion-forums@vbyj26>
 <a70e5322-6339-47cf-808c-d14144d6d582@jx17g2000pbb.googlegroups.com>
Subject: Re: API call that returns Location based on Timestamp
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_308_22870907.1339565658957"

------=_Part_308_22870907.1339565658957
Content-Type: multipart/alternative; 
	boundary="----=_Part_309_25319769.1339565658957"

------=_Part_309_25319769.1339565658957
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit



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


On Tuesday, May 1, 2012 11:54:13 AM UTC-7, Chanachai Norasing wrote:
>
>
>
> 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 
> > will give you the location corresponding to the UTC 
> timestamp1274057512199. 
> > 
> > Is that what you were looking for ? 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Saturday, March 17, 2012 4:06:02 PM UTC+1, rowntreerob wrote: 
> > 
> > > 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....


------=_Part_309_25319769.1339565658957
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<pre class="body prettyprint" style="margin-top: 20px; outline: 0px; font-family: inherit; word-wrap: break-word; line-height: 13px; ">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??\</pre><pre class="body prettyprint" style="margin-top: 20px; outline: 0px; font-family: inherit; word-wrap: break-word; line-height: 13px; ">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?</pre><pre class="body prettyprint" style="margin-top: 20px; outline: 0px; font-family: inherit; word-wrap: break-word; line-height: 13px; "><br></pre><pre class="body prettyprint" style="margin-top: 20px; outline: 0px; font-family: inherit; word-wrap: break-word; line-height: 13px; ">Google Latitude API v1:
  Delete CurrentLocation - <span class="httpMethodLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">DELETE</span> <a href="https://www.googleapis.com/latitude/v1/currentLocation" class="uriLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">https://www.googleapis.com/latitude/v1/currentLocation</a>
  Delete Location - <span class="httpMethodLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">DELETE</span> <a href="https://www.googleapis.com/latitude/v1/location/%7BlocationId%7D" class="uriLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">https://www.googleapis.com/latitude/v1/location/{locationId}</a>
  Get Location - <span class="httpMethodLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">GET</span> <a href="https://www.googleapis.com/latitude/v1/location/%7BlocationId%7D" class="uriLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">https://www.googleapis.com/latitude/v1/location/{locationId}</a>
  List Location - <span class="httpMethodLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">GET</span> <a href="https://www.googleapis.com/latitude/v1/location" class="uriLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">https://www.googleapis.com/latitude/v1/location</a>
  Insert Location - <span class="httpMethodLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">POST</span> <a href="https://www.googleapis.com/latitude/v1/location" class="uriLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">https://www.googleapis.com/latitude/v1/location</a>
  Insert CurrentLocation - <span class="httpMethodLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">POST</span> <a href="https://www.googleapis.com/latitude/v1/currentLocation" class="uriLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">https://www.googleapis.com/latitude/v1/currentLocation</a>
  Get CurrentLocation - <span class="httpMethodLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">GET</span> <a href="https://www.googleapis.com/latitude/v1/currentLocation" class="uriLink" style="outline: 0px; font-style: inherit; font-family: inherit; cursor: pointer; ">https://www.googleapis.com/latitude/v1/currentLocation</a></pre><br>On Tuesday, May 1, 2012 11:54:13 AM UTC-7, Chanachai Norasing wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<br>
<br>On Mar 28, 6:38&nbsp;pm, Davy &lt;<a>ddewa...@gmail.com</a>&gt; wrote:
<br>&gt; I think that API call already exists.
<br>&gt;
<br>&gt; <a href="http://code.google.com/apis/latitude/v1/using_rest.html#RetrievingHis." target="_blank">http://code.google.com/apis/<wbr>latitude/v1/using_rest.html#<wbr>RetrievingHis.</a>..
<br>&gt;
<br>&gt; The locationId corresponds with the timestamp of that location.
<br>&gt; A simple REST call like this GEThttps://<a href="http://www.googleapis.com/latitude/v1/location/1274057512199" target="_blank">www.googleapis.com/<wbr>latitude/v1/location/<wbr>1274057512199</a>
<br>&gt; will give you the location corresponding to the UTC timestamp1274057512199.
<br>&gt;
<br>&gt; Is that what you were looking for ?
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; On Saturday, March 17, 2012 4:06:02 PM UTC+1, rowntreerob wrote:
<br>&gt;
<br>&gt; &gt; If i look at my location History ( a set ) im given the option of
<br>&gt; &gt; displaying all the timeStamps over in the left side of the display. Im
<br>&gt; &gt; also given a timeline on the bottom where i can use the mouse to
<br>&gt; &gt; select a position on the timeline. Both of these visual inspections
<br>&gt; &gt; provide a single answer to " what was my position at UTC time
<br>&gt; &gt; hh:mm:ss:mmm?" Looking at the current API, if i want a point location
<br>&gt; &gt; matching Time X, i have to process the entire set of History
<br>&gt; &gt; locations, using my own 'best matching point based on correlated
<br>&gt; &gt; Timestamp" to narrow down the set to just one point. Seems like
<br>&gt; &gt; something google can do better than me....</blockquote>
------=_Part_309_25319769.1339565658957--

------=_Part_308_22870907.1339565658957--