X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a49786f8bcb76715cf4009ba807a844baae282..0b7435ab32b3271ae000894f6798cc087b3c058c:/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