After looking at the location module. I couldn't find any way to override the 'search_distance' parameter by creating a custom Form.
dose anyone know how to override this variable by using a custom module? .
I do have a map that is already searching proximity by zip code. it uses php code to determine the latitude, longitude.
I want to add the 'distance' selectbox next to the zipcode and filter it by (25 miles, 50 miles, 100 miles) like that.
Please note: the below Form for filtering is written in a custom module. so I'm looking for php code.