X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6c2093b29d74b145b85e61c4fff09b5f13afa0e5..cc3ea94e2f4d62d1c791c2a2fc6eb54bf571e007:/lib/bounding_box.rb?ds=sidebyside diff --git a/lib/bounding_box.rb b/lib/bounding_box.rb index 6582a30c0..d1c39f1f4 100644 --- a/lib/bounding_box.rb +++ b/lib/bounding_box.rb @@ -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 +