Google uses three primary factors: relevance, distance, and prominence. That means how well your business matches the search query, how close you are to the searcher, and how credible your online presence is (reviews, backlinks, directory listings, etc.).