]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Rework coordinates to avoid scientific formatting of small numbers. Fixes #1509
[rails.git] / app / models / node.rb
index fb9bdf68b0dd700b27c55b39fe4b4885cbced563..f4367e45954edf51964b903ce54b733c89f8de0b 100644 (file)
@@ -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"] = format("%.7f", lat)
-      el["lon"] = format("%.7f", lon)
+      el["lat"] = lat.to_s
+      el["lon"] = lon.to_s
     end
 
     add_tags_to_xml_node(el, node_tags)