Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When you say you want to "update" a Google Latitude user, you want to "update their current location", right?</p> <p>For some Google services, Google will set up a Google API project on <a href="http://code.google.com/more/" rel="noreferrer">Google Code</a>. In this case, you're in luck, because there is a Google Latitude API that describes the different actions you can do using a REST interface (REST is always compatible with <code>curl</code>). Here's their example code for updating a user's location:</p> <pre><code>POST https://www.googleapis.com/latitude/v1/currentLocation?key=INSERT-YOUR-KEY /* Authorization header here */ Content-Type: application/json { "data": { "kind":"latitude#location", "latitude":37.420352, "longitude":-122.083389, "accuracy":130, "altitude":35 } } </code></pre> <p>The <a href="http://code.google.com/apis/latitude/v1/using_rest.html#UpdatingCurrent" rel="noreferrer">Google Latitude API webside</a> describes the full details. You'll need to get an API key before you can start writing code, and you'll need to do an OATH 2.0 authentication handshake before you can actually update the user's location.</p> <h2>Update</h2> <p>If you don't want to write the authentication code yourself, Google provides several pre-packaged client libraries, in <a href="http://code.google.com/apis/latitude/libraries.html" rel="noreferrer">.NET, GWT, Java, PHP, Python, and Ruby</a>. They each support the full API, including authentication.</p> <p>Google has a full example that uses their Java API to do authentication. Follow the instructions at <a href="http://samples.google-api-java-client.googlecode.com/hg/latitude-json-oauth-sample/instructions.html?r=default" rel="noreferrer">http://samples.google-api-java-client.googlecode.com/hg/latitude-json-oauth-sample/instructions.html?r=default</a> and try it out.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload