X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a49786f8bcb76715cf4009ba807a844baae282..88f156a41a5c9ae45d404747819b446861db7a8c:/app/views/api/old_nodes/_old_node.json.jbuilder 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