X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a49786f8bcb76715cf4009ba807a844baae282..dd29af0ec4adc05f1e6f6be0af0c23724492aef8:/app/views/api/old_nodes/_old_node.json.jbuilder?ds=inline diff --git a/app/views/api/old_nodes/_old_node.json.jbuilder b/app/views/api/old_nodes/_old_node.json.jbuilder index 5042c84a7..211d50332 100644 --- a/app/views/api/old_nodes/_old_node.json.jbuilder +++ b/app/views/api/old_nodes/_old_node.json.jbuilder @@ -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