GooglePlaces Framework Reference
GMSPlaceSearchNearbyRankPreference
enum GMSPlaceSearchNearbyRankPreference : NSInteger {}
How results will be ranked in the response.
-
(default) Sorts results based on their popularity.
Declaration
Swift
case popularity = 0
Objective-C
GMSPlaceSearchNearbyRankPreferencePopularity
-
Sorts results in ascending order by their distance from the specified location.
Declaration
Objective-C
GMSPlaceSearchNearbyRankPreferenceDistance
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 2024-11-08 UTC.
[null,null,["Last updated 2024-11-08 UTC."],[[["`GMSPlaceSearchNearbyRankPreference` is 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, and `distance`, which sorts results by their distance from the specified location."]]],[]]