]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/map/_bounds.json.jbuilder
Merge remote-tracking branch 'upstream/pull/5286'
[rails.git] / app / views / api / map / _bounds.json.jbuilder
index 98755900efcbf978f3b05eb2ff8dd76768ac136a..16fdbeb0f3d8051053b8d56e46d77769c8b1f49a 100644 (file)
@@ -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