<p>Can't this be fixed by changing:</p>
<pre><code> return changesets.where("min_lon < ? and max_lon > ? and min_lat < ? and max_lat > ?",
bbox.max_lon.to_i, bbox.min_lon.to_i,
bbox.max_lat.to_i, bbox.min_lat.to_i)
</code></pre>
<p>to<br>
return changesets.where("min_lon > ? and max_lon < ? and min_lat > ? and max_lat < ?",<br>
bbox.min_lon.to_i, bbox.max_lon.to_i,<br>
bbox.min_lat.to_i, bbox.max_lat.to_i)</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/837#issuecomment-63423676">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLdEBZ1X8RaMBxOOp8gCa7pBNEw2mks5nOsyOgaJpZM4C8qz8.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/837#issuecomment-63423676"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>