]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/old_nodes/_old_node.json.jbuilder
Update bundle
[rails.git] / app / views / api / old_nodes / _old_node.json.jbuilder
index 5042c84a73dfce39ef769856557d0622e89ef1e9..211d50332324242bffc5f65dc69318dc02b43784 100644 (file)
@@ -1,8 +1,8 @@
 json.type "node"
 json.id old_node.node_id
 if old_node.visible
-  json.lat format("%.7f", old_node.lat.to_f)
-  json.lon format("%.7f", old_node.lon.to_f)
+  json.lat GeoRecord::Coord.new(old_node.lat)
+  json.lon GeoRecord::Coord.new(old_node.lon)
 end
 json.timestamp old_node.timestamp.xmlschema
 json.version old_node.version