GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
enum GMSPlaceSearchByTextRankPreference : NSInteger {}
How results will be ranked in the response.
-
Declaration
Objective-C
GMSPlaceSearchByTextRankPreferenceDistance
-
Declaration
Objective-C
GMSPlaceSearchByTextRankPreferenceRelevance
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPlaceSearchByTextRankPreference\u003c/code\u003e is an enum used to specify how search results should be ordered.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options for ranking: \u003ccode\u003eGMSPlaceSearchByTextRankPreferenceDistance\u003c/code\u003e which prioritizes results by distance, and \u003ccode\u003eGMSPlaceSearchByTextRankPreferenceRelevance\u003c/code\u003e which prioritizes results by their relevance to the search query.\u003c/p\u003e\n"]]],[],null,["# GooglePlaces Framework Reference\n\nGMSPlaceSearchByTextRankPreference\n==================================\n\n enum GMSPlaceSearchByTextRankPreference : NSInteger {}\n\nHow results will be ranked in the response.\n- `\n ``\n ``\n `\n\n ### [GMSPlaceSearchByTextRankPreferenceDistance](#/c:@E@GMSPlaceSearchByTextRankPreference@GMSPlaceSearchByTextRankPreferenceDistance)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case distance = 0\n\n Objective-C \n\n GMSPlaceSearchByTextRankPreferenceDistance\n\n- `\n ``\n ``\n `\n\n ### [GMSPlaceSearchByTextRankPreferenceRelevance](#/c:@E@GMSPlaceSearchByTextRankPreference@GMSPlaceSearchByTextRankPreferenceRelevance)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case relevance = 1\n\n Objective-C \n\n GMSPlaceSearchByTextRankPreferenceRelevance"]]