<p dir="auto">This PR addresses issue about using exponential instead of standard for latitudes and longitudes close to 0.0 in search results described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2391374224" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4950" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4950/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4950">#4950</a></p>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #4950.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2391374224" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4950" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4950/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4950">#4950</a>. Improved result_to_html routine by detecting latitude and longitude values close to 0.0 and replacing their representation (exponential) with standard, by calculating number of required decimals (by looking at the position of decimal point if available) and generating standard representation.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4956'>https://github.com/openstreetmap/openstreetmap-website/pull/4956</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4956/commits/637271d552adb396401f2705a892af08f561c21a" class="commit-link">637271d</a> Improves displaying lat, lon values close to 0.0</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4956/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4956/files#diff-bed4ca7da5223552daa225793ab8007631d3d86673a13728e29be74bbf47dd00">app/helpers/geocoder_helper.rb</a>
(35)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4956.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4956.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4956.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4956.diff</a></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/pull/4956">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMU5W3T6FAT4ZK5HH3ZK3A63AVCNFSM6AAAAABKNOPB6WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TEOBWGUZTSNY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPZ5H3MAYOCCM6VBJTZK3A63A5CNFSM6AAAAABKNOPB6WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHI5IB2OU.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/pull/4956</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/pull/4956",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4956",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>