Page Summary
-
GMSPlaceSearchNearbyRankPreferenceis an enum used to specify how results will be ranked in a Place Search. -
It has two possible values:
popularity(default), which sorts results by their popularity, anddistance, which sorts results by their distance from the specified location.
GMSPlaceSearchNearbyRankPreference
enum GMSPlaceSearchNearbyRankPreference : NSInteger {}How results will be ranked in the response.
-
(default) Sorts results based on their popularity.
Declaration
Swift
case popularity = 0Objective-C
GMSPlaceSearchNearbyRankPreferencePopularity -
Sorts results in ascending order by their distance from the specified location.
Declaration
Swift
case distance = 1Objective-C
GMSPlaceSearchNearbyRankPreferenceDistance