X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a49786f8bcb76715cf4009ba807a844baae282..e94a8a45ba8a51bc5d288e6cda713059a1c6ae1f:/app/views/api/map/_bounds.json.jbuilder diff --git a/app/views/api/map/_bounds.json.jbuilder b/app/views/api/map/_bounds.json.jbuilder index 98755900e..16fdbeb0f 100644 --- a/app/views/api/map/_bounds.json.jbuilder +++ b/app/views/api/map/_bounds.json.jbuilder @@ -1,6 +1,6 @@ json.bounds do - json.minlat format("%.7f", @bounds.min_lat) - json.minlon format("%.7f", @bounds.min_lon) - json.maxlat format("%.7f", @bounds.max_lat) - json.maxlon format("%.7f", @bounds.max_lon) + json.minlat GeoRecord::Coord.new(@bounds.min_lat) + json.minlon GeoRecord::Coord.new(@bounds.min_lon) + json.maxlat GeoRecord::Coord.new(@bounds.max_lat) + json.maxlon GeoRecord::Coord.new(@bounds.max_lon) end