X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8516ad87b36b23ec49c99654a0281f7c9d0673d0..e13b35e0cbf6b1c0ec429ed61ee6b9d8c4de176c:/lib/map_boundary.rb diff --git a/lib/map_boundary.rb b/lib/map_boundary.rb index 9b39c9342..da7e44b32 100644 --- a/lib/map_boundary.rb +++ b/lib/map_boundary.rb @@ -17,6 +17,7 @@ module MapBoundary raise("The minimum latitude must be less than the maximum latitude, but it wasn't") end unless min_lon >= -180 && min_lat >= -90 && max_lon <= 180 && max_lat <= 90 + # Due to sanitize_boundaries, it is highly unlikely we'll actually get here raise("The latitudes must be between -90 and 90, and longitudes between -180 and 180") end