AI-generated Key Takeaways
-
GMSPlaceSearchByTextRankPreference
is an enum used to specify how search results should be ordered. -
It offers two options for ranking:
GMSPlaceSearchByTextRankPreferenceDistance
which prioritizes results by distance, andGMSPlaceSearchByTextRankPreferenceRelevance
which 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 = 0
Objective-C
GMSPlaceSearchByTextRankPreferenceDistance
-
Declaration
Swift
case relevance = 1
Objective-C
GMSPlaceSearchByTextRankPreferenceRelevance