RSS is most commonly used for keeping track of blog updates, but that doesn't mean that's the only thing you can use it for. Nothing says that the data in the RSS feed has to be time oriented or even changing. My application generates the RSS document from the database, so it could change from time to time, but on the whole it shows the same items all the time. It actually doesn't even have a date in the document.
My application just created a url that the user could visit to view the RSS for the needed data and then redirected them to google maps with the RSS feed url as a query option:
http://maps.google.com/?q=http://mywebserver.com/path/to/georss.xmlGoogle maps downloads the RSS document and displays the items on the map. The xml is really easy to build. If you are just putting this data in RSS to get it to google maps (I did) then you'll have to build the RSS from scratch. It's still easy. Here is an example of some simple RSS markup that you can easily generate from what ever language you are using.
It took me 30min to roll out basic google maps integration with my data using this really easy method. You can read more about it at georss.org.

0 comments:
Post a Comment