]> git.openstreetmap.org Git - rails.git/blobdiff - lib/bounding_box.rb
Merge remote-tracking branch 'upstream/pull/2423'
[rails.git] / lib / bounding_box.rb
index 6582a30c0157ed1af60b844853df84743a33e72d..d1c39f1f4dbf73674f6f875d4489c86be17a0c1a 100644 (file)
@@ -69,7 +69,7 @@ class BoundingBox
     self
   end
 
-  def check_size(max_area = MAX_REQUEST_AREA)
+  def check_size(max_area = Settings.max_request_area)
     # check the bbox isn't too large
     if area > max_area
       raise OSM::APIBadBoundingBox, "The maximum bbox size is " + max_area.to_s +