<p>Speaking for the Nominatim part only: Main issue with that is the descriptive term in front of the search result. Nominatim only delivers a class/type pair (i.e. the key and value of the main tag) which is translated and localized into the descriptive term by rails. So, in order to get this on the client side, you'd have to translate half the locale ymls to javascript.</p>

<p>There is this vague idea in my head to move the entire logic about descriptions into Nominatim but it needs some investigating if that is feasible (and wanted, for that matter). May I suggest you hold off rewriting the rails code until I've had time to look into that?</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/80#issuecomment-8296105'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_lk8JmcwefoZpFoEC9eJWD_.gif' height='1' width='1'>