Skip to content

Commit

Permalink
update front page to include stuff about IP addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Mar 29, 2010
1 parent 807aec9 commit aa9ced3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion spacetime/__init__.py
Expand Up @@ -104,7 +104,22 @@ def get (self):
</pre>
</div>
<p style="font-style:italic;">Decoding is the same but just make sure you go to <code>/woe/decode</code>.</p>
<a name="ip"></a>
<p>It is also possible encode <a href="http://en.wikipedia.org/wiki/IP_address">IP addresses</a>. Here is (more or less) the same corner, at the same time, in IP <q>space</q>:</p>
<div class="request">
<p>GET <a href="http://spacetimeid.appspot.com/ip/encode/173.164.158.185/1268809061">http://spacetimeid.appspot.com/ip/encode/173.164.158.185/1268809061</a></p>
<pre>
&lt;rsp stat="ok"&gt;
&lt;spacetime ip="173.164.158.185" id="2372987648121137443" timestamp="1268809061"/&gt;
&lt;/rsp&gt;
</pre>
</div>
<p style="font-size:small;font-style:italic;">Decoding WOE IDs and IP adddresses the same as decoding coordinates but just make sure you go to the correct endpoint: <code>/woe/decode</code> and <code>/ip/decode</code> respectively.</p>
<a name="details"></a>
Expand Down

0 comments on commit aa9ced3

Please sign in to comment.