3 xml.rss("version" => "2.0",
4 "xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
5 "xmlns:georss" => "http://www.georss.org/georss") do
7 xml.title t('changeset.list_user_rss.title', :user => @display_name)
8 xml.description t('changeset.list_user_rss.description', :user => @display_name)
9 xml.link url_for(:controller => "user", :action => "edits", :id => @display_name, :only_path => false)
11 xml.url "http://www.openstreetmap.org/images/mag_map-rss2.0.png"
12 xml.title "OpenStreetMap"
15 xml.link url_for(:controller => "user", :action => "edits", :id => @display_name, :only_path => false)
19 for changeset in @edits
21 xml.title t('browse.changeset.title') + " " + h(changeset.id)
22 xml.link url_for(:controller => 'browse', :action => "changeset", :id => changeset.id, :only_path => false)
23 xml.guid url_for(:controller => 'browse', :action => "changeset", :id => changeset.id, :only_path => false)
24 if changeset.user.data_public?
25 xml.author changeset.user.display_name
27 if changeset.tags['comment']
28 xml.description changeset.tags['comment']
30 xml.pubDate changeset.created_at.to_s(:rfc822)
31 xml.comments url_for(:controller => "message", :action => "new", :id => changeset.user.id, :only_path => false)
33 unless changeset.min_lat.nil?
34 minlon = changeset.min_lon/GeoRecord::SCALE.to_f
35 minlat = changeset.min_lat/GeoRecord::SCALE.to_f
36 maxlon = changeset.max_lon/GeoRecord::SCALE.to_f
37 maxlat = changeset.max_lat/GeoRecord::SCALE.to_f
39 # See http://georss.org/Encodings#Geometry
40 lower_corner = "#{minlat} #{minlon}"
41 upper_corner = "#{maxlat} #{maxlon}"
43 xml.georss :box, lower_corner + " " + upper_corner