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