Created
January 18, 2010 12:51
-
-
Save pauldix/279990 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Feedzirra example | |
# adding geo extensions to feed entries | |
Feedzirra::Feed.add_common_feed_entry_element("geo:lat", :as => :lat) | |
Feedzirra::Feed.add_common_feed_entry_element("geo:long", :as => :long) | |
feed = Feedzirra::Feed.fetch_and_parse("url-to-some-geo-rss-feed ...") | |
feed.entries.first.lat # yay, the parsed out lat | |
feed.entries.first.long # yay, the parsed out long |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment