Rudimentary smart box on the landing page

Tim is learning JS or we have a smart search box on the landing page.

Need a good idea how to redirect people from a URL with lat,lng in it to one with 3hash only