X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a49786f8bcb76715cf4009ba807a844baae282..77fd890b7946519b3deefbd5a19fa2ed5563e8fd:/app/views/api/map/_bounds.json.jbuilder?ds=inline 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