6 "user" => trace.user.display_name,
7 "visibility" => trace.visibility,
8 "pending" => trace.inserted ? "false" : "true",
9 "timestamp" => trace.timestamp.xmlschema
13 attrs["lat"] = trace.latitude.to_s
14 attrs["lon"] = trace.longitude.to_s
17 xml.gpx_file(attrs) do |trace_xml_node|
18 trace_xml_node.description(trace.description)
19 trace.tags.each do |t|
20 trace_xml_node.tag(t.tag)