<p></p>
<blockquote>
<p dir="auto">One small thing is that I did consider using the diagonal size rather than width+length but my brief tests suggested it caused more variation as the shape of the box changed from square to elongated.</p>
</blockquote>
<p dir="auto">This goes a bit beyond this issue - but mathematically what you currently do (width+length) is the <em>L1 norm</em>.  The diagonal size would be the <em>L2 norm</em>.  At the other end of the scale (see <a href="https://en.wikipedia.org/wiki/Lp_space" rel="nofollow">https://en.wikipedia.org/wiki/Lp_space</a>) you have the L<sup>inf</sup> norm, which would be <code class="notranslate">max(width, length)</code>.</p>
<p dir="auto">I don't think which of these you choose ultimately matters since:</p>
<ul dir="auto">
<li>you do this in a highly distorted equirectangular projection anyway.</li>
<li>the bounding box is a highly suboptimal measure for spatial extent of the impact an edit has on the map, even if it was in a low distortion projection.</li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/4910#issuecomment-2179337027">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKPTT2SQBYIXRAFSQLZIHJ3VAVCNFSM6AAAAABJSEJTRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGMZTOMBSG4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOB46TW3VWKHKVNRZTZIHJ3VA5CNFSM6AAAAABJSEJTRCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUB4YFUG.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/4910/2179337027</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/4910#issuecomment-2179337027",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4910#issuecomment-2179337027",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>