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.
-
Declaration
Swift
case distance = 0Objective-C
GMSPlaceSearchByTextRankPreferenceDistance -
Declaration
Swift
case relevance = 1Objective-C
GMSPlaceSearchByTextRankPreferenceRelevance