What affects local rankings?

Google looks at relevance, distance and prominence. In practice that means your Google Business Profile, how clearly your website explains your services and areas, reviews, consistent business details across the web and links from relevant local sites. How close the searcher is to you matters too, and nobody can change that.