X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a49786f8bcb76715cf4009ba807a844baae282..9cd96bd452415918be77d6d2094c021b652c9048:/app/views/api/nodes/_node.json.jbuilder diff --git a/app/views/api/nodes/_node.json.jbuilder b/app/views/api/nodes/_node.json.jbuilder index 12cf2fb95..e48d5f17c 100644 --- a/app/views/api/nodes/_node.json.jbuilder +++ b/app/views/api/nodes/_node.json.jbuilder @@ -1,8 +1,8 @@ json.type "node" json.id node.id if node.visible - json.lat format("%.7f", node.lat.to_f) - json.lon format("%.7f", node.lon.to_f) + json.lat GeoRecord::Coord.new(node.lat) + json.lon GeoRecord::Coord.new(node.lon) end json.timestamp node.timestamp.xmlschema json.version node.version