Permalink
Browse files

update front page to include stuff about IP addresses

  • Loading branch information...
1 parent 807aec9 commit aa9ced39ab81f1ab6d6dda831912c9f16708da59 Aaron Straup Cope committed Mar 29, 2010
Showing with 16 additions and 1 deletion.
  1. +16 −1 spacetime/__init__.py
View
@@ -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>

0 comments on commit aa9ced3

Please sign in to comment.