How to add a location category to a search bar

I’m creating a directory site and I’m trying to customize the main search bar and I can’t really find any help… does anyone know how I could do this?