# GooglePlaces Framework Reference

# GMSPlaceSearchNearbyRankPreference

    enum GMSPlaceSearchNearbyRankPreference : NSInteger {}

How results will be ranked in the response.
- `


  ### [GMSPlaceSearchNearbyRankPreferencePopularity](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlaceSearchNearbyRankPreference#/c:@E@GMSPlaceSearchNearbyRankPreference@GMSPlaceSearchNearbyRankPreferencePopularity)


  ` (default) Sorts results based on their popularity.

  #### Declaration

  Swift

      case popularity = 0

  Objective-C

      GMSPlaceSearchNearbyRankPreferencePopularity

- `


  ### [GMSPlaceSearchNearbyRankPreferenceDistance](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlaceSearchNearbyRankPreference#/c:@E@GMSPlaceSearchNearbyRankPreference@GMSPlaceSearchNearbyRankPreferenceDistance)


  ` Sorts results in ascending order by their distance from the specified location.

  #### Declaration

  Swift

      case distance = 1

  Objective-C

      GMSPlaceSearchNearbyRankPreferenceDistance