X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ea59d95f4aad7cafe3a0d0b4d5ef533b0662e365..11e81c5398bb43d35c1b12421f7a6be2ca5b7047:/lib/bounding_box.rb diff --git a/lib/bounding_box.rb b/lib/bounding_box.rb index 0b9731b22..3b366dc1e 100644 --- a/lib/bounding_box.rb +++ b/lib/bounding_box.rb @@ -14,7 +14,7 @@ class BoundingBox end def self.from_s(s) - BoundingBox.new(*s.split(/,/)) if s.count(",") == 3 + BoundingBox.new(*s.split(",")) if s.count(",") == 3 end def self.from_bbox_params(params) @@ -72,7 +72,7 @@ class BoundingBox 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 + + raise OSM::APIBadBoundingBox, "The maximum bbox size is #{max_area}" \ ", and your request was too large. Either request a smaller area, or use planet.osm" end self