Permalink
Browse files

also grab georss from rss, not just atom

  • Loading branch information...
1 parent 324aa0d commit 12660116f170650402205f66d5a7d1d64c73dda5 @maxogden committed Apr 24, 2011
Showing with 1,219 additions and 32 deletions.
  1. +5 −0 src/jrss.js
  2. +1,214 −32 xml/georss.xml
View
@@ -30,6 +30,11 @@ JRss.prototype = {
item.description = jQuery(this).find('description').eq(0).text();
item.updated = jQuery(this).find('pubDate').eq(0).text();
item.id = jQuery(this).find('guid').eq(0).text();
+ var point = jQuery(this).find('[nodeName="georss:point"]').eq(0).text();
+ if (point.length > 0) {
+ point = point.split(" ");
+ item.geometry = { type: "Point", coordinates: [point[1], point[0]] };
+ }
feed.items.push(item);
});
Oops, something went wrong.

0 comments on commit 1266011

Please sign in to comment.