projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Format latitudes and longitudes as %7f in XML output
[rails.git]
/
app
/
models
/
node.rb
diff --git
a/app/models/node.rb
b/app/models/node.rb
index f8559dca75d74431153342f4c4c987281a5354e8..6346907f1ef88354ee098f1ee8c72c774898b1ad 100644
(file)
--- a/
app/models/node.rb
+++ b/
app/models/node.rb
@@
-185,8
+185,8
@@
class Node < ActiveRecord::Base
add_metadata_to_xml_node(el, self, changeset_cache, user_display_name_cache)
if visible?
- el["lat"] =
lat.to_s
- el["lon"] =
lon.to_s
+ el["lat"] =
format("%.7f", lat)
+ el["lon"] =
format("%.7f", lon)
end
add_tags_to_xml_node(el, node_tags)