Geeks With Blogs

Lance's TextBox

Tim Hibbard has added GeoRSS to his Where's Tim location feed (by the way, you can get your own location feed through Where's Tim On Demand).

I've talked about how RSSBus can be used to work with feeds and generate new output based on them.  Here's a simplistic but  neat example:  I took Tim's location feed and called it from an RSSBus template.  Inside the template I split out KML (Google Earth's XML format) that draws a path showing Tim's path throughout the day.  Here's what the KML looks like in Google Earth:

Now here's a listing of the actual RSSBus Template that I used.  Note that the template itself is simply KML, with two RSBScript calls (rsb:set and rsb:call) mixed in.  Those two RSBScript calls are where RSSBus does its work.

<!-- Set the content type of the output stream -->
<rsb:set item=_httpheaders attr="Content-Type" value="text/xml"/>

<xml version="1.0" encoding="UTF-8"?>
<kml xmlns="">
  <description>Where's Tim Path<description>
  <name>Tim's Path<name>
    <rsb:call op="">
    [georss:point | LSplit(' ',2)],[georss:point | LSplit(' ',1)]
All this template is doing is:


1.  Setting the content-type to text/xml
2.  Calling Tim's location feed, and for each item in the feed outputting the georss:point element (after reversing it, which is what the splits are for) value inside the KML coordinates element.

Technorati tags:     

Posted on Thursday, June 15, 2006 9:50 AM Programming , Software | Back to top

Comments on this post: Where's Tim RSSBus Template

# re: Where's Tim RSSBus Template
Requesting Gravatar...
Very cool!!!
Left by Tim Hibbard on Jun 15, 2006 11:26 AM

Your comment:
 (will show your gravatar)

Copyright © Lance Robinson | Powered by: