Hi, i'am looking for best practices in 2019 for Search on a website. Very similar to rightmove / zoopla etc.
1) They allow the user to search by county / postcode / town. How is this list populated in the drop down? is it a list of towns in a plugin which are then used as variables to populate the mysql select query,, or is it ajax populating the search input with a call to the db...
Reason iam confused it i know of a site with no property in a certain area but the list still predicts the area ...i.e. if no matching address is in the db how is it populating?
2) they also have a search function that once the user has arrived on the page by postcode..users are able to search 1/4 mile 1/2 mile radius etc from the postcode for other properties... how is this working?
thx for your time in advance .
in the jpeg i show the search box...when user types 'lon' it brings up everything with lon in title i.e london, londonderry, long meadow etc