X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/52c688f55aa9b1a97e869a3b3a972056e3063cb5..d3c800fdb4cf1b80d670a3425687d7d1b72a3985:/lib/bounding_box.rb diff --git a/lib/bounding_box.rb b/lib/bounding_box.rb index 44375ae5b..1350d69ba 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) @@ -64,7 +64,7 @@ class BoundingBox if min_lon < -LON_LIMIT || min_lat < -LAT_LIMIT || max_lon > +LON_LIMIT || max_lat > +LAT_LIMIT raise OSM::APIBadBoundingBox, "The latitudes must be between #{-LAT_LIMIT} and #{LAT_LIMIT}," \ - " and longitudes between #{-LON_LIMIT} and #{LON_LIMIT}" + " and longitudes between #{-LON_LIMIT} and #{LON_LIMIT}" end self end