Parse location from search form

Correctly parse location and built API url for request