Post about the ICBM namespace

This commit is contained in:
~lucidiot 2023-09-03 18:07:52 +02:00
parent d9d7acc38d
commit 96b45972cd
1 changed files with 32 additions and 0 deletions

View File

@ -9,6 +9,7 @@
xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:icbm="http://postneo.com/icbm"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:webfeeds="http://webfeeds.org/rss/1.0"
@ -1319,5 +1320,36 @@
<p>A mix between <em>The Onion</em> and <em>O(log n)</em>, this website is pretty much The Onion for developers. The satirical news reports are published much less often than before but do make me smile a little each time, before the usual existential dread sets back in.</p>
]]></description>
</item>
<item>
<title>Let your haters nuke you over RSS</title>
<pubDate>Sun, 03 Sep 2023 18:05:52 +0200</pubDate>
<guid isPermaLink="false">icbm</guid>
<category domain="https://envs.net/~lucidiot/rsrsss/">Tip</category>
<category domain="https://envs.net/~lucidiot/rsrsss/">Geospatial</category>
<link>https://web.archive.org/web/20130307033513/http://postneo.com/icbm/</link>
<description><![CDATA[
<p>One of the most primitive ways you can specify geospatial information within an RSS feed is also one of the oldest, and it is supported by the W3C validator among others. The <code>icbm</code> XML namespace allows you to specify an <a href="https://en.wikipedia.org/wiki/ICBM_address" target="_blank">ICBM address</a> in either the <code>&lt;channel&gt;</code> or the <code>&lt;item&gt;</code> elements, allowing you to relate a location to either the entire RSS feed or a single specific item on that feed.</p>
<pre>
&lt;rss version="2.0" xmlns:icbm="http://postneo.com/icbm"&gt;
&lt;channel&gt;
&lt;!-- ... --&gt;
&lt;icbm:latitude&gt;30.0301&lt;/icbm:latitude&gt;
&lt;icbm:longitude&gt;32.5776&lt;/icbm:longitude&gt;
&lt;item&gt;
&lt;!-- ... --&gt;
&lt;icbm:latitude&gt;31.5077090&lt;/icbm:latitude&gt;
&lt;icbm:longitude&gt;-82.3115156&lt;/icbm:longitude&gt;
&lt;/item&gt;
&lt;/channel&gt;
&lt;/rss&gt;
</pre>
<p>With this method, you can therefore specify a location where someone may send a nuke if they have been particularly angered by something you published on that feed. Or more commonly, you might want to set a location relevant to the feed, like the location of the <a href="https://xkcd.com/703/" target="_blank">tautology club</a> whose blog has a feed for, or the location of something mentioned within the feed.</p>
<p>There are other, more recent and more standard methods to refer to geographic coordinates in an RSS feed, and not just specific points. We will go over those some other time.</p>
]]></description>
<icbm:latitude>33.6772827</icbm:latitude>
<icbm:longitude>-106.4753787</icbm:longitude>
</item>
</channel>
</rss>