AI-generated Key Takeaways
- 
          GMSPlaceSearchByTextRankPreferenceis an enum used to specify how search results should be ordered.
- 
          It offers two options for ranking: GMSPlaceSearchByTextRankPreferenceDistancewhich prioritizes results by distance, andGMSPlaceSearchByTextRankPreferenceRelevancewhich prioritizes results by their relevance to the search query.
GMSPlaceSearchByTextRankPreference
enum GMSPlaceSearchByTextRankPreference : NSInteger {}How results will be ranked in the response.
- 
                  
                  DeclarationSwift case distance = 0Objective-C GMSPlaceSearchByTextRankPreferenceDistance
- 
                  
                  DeclarationSwift case relevance = 1Objective-C GMSPlaceSearchByTextRankPreferenceRelevance