X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dd1f94e3414d1cbea71706dcb0e3a418db208efd..a8d6714aebfacfc32808a5aca41f6dae785a14cf:/lib/osm.rb?ds=inline diff --git a/lib/osm.rb b/lib/osm.rb index e230b5791..adf34684f 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -298,7 +298,7 @@ module OSM lon_el = XML::Node.new 'geo:lon' lon_el << longitude.to_s - item << lat_el + item << lon_el @channel << item end @@ -307,4 +307,16 @@ module OSM return @doc.to_s end end + + class API + def get_xml_doc + doc = XML::Document.new + doc.encoding = 'UTF-8' + root = XML::Node.new 'osm' + root['version'] = API_VERSION + root['generator'] = 'OpenStreetMap server' + doc.root = root + return doc + end + end end