<p>In app/helpers/geocoder_helper.rb:</p>
<pre style='color:#555'>> @@ -40,4 +40,41 @@ def describe_location(lat, lon, zoom = nil, language = nil)
> "#{number_with_precision(lat, :precision => 3)}, #{number_with_precision(lon, :precision => 3)}"
> end
> end
> +
> + def nsew_to_decdeg(captures)
</pre>
<p>Wouldn't it make more sense to put these methods in the controller? It's the only place they are used, their implementation is intimately tied to the regexs used in the controller method, and it will having to jump through hoops with <code>view_context</code> to call them.</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/pull/216/files#r3197463'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpswm2upcLXkvSUV9Ff7I2X2AMGIam68vFFgovLsKBb-e.gif' height='1' width='1'></p>