We're looking to implement a search option (i.e. ajax search bar), where a user can search for a business, entering a city and while typing, getting a dropdown result (just as google search), with businesses available in this city + it's state and/or country. So only cities where a business is actually added to the site (we were thinking business profiles made with BuddyPress) will show a positive result, rather than showing all cities starting with the entered text.
Also, an option to click "search for nearby businesses" so the system can provide results based on the user's location.
Do you have any idea on how to do that?