# GooglePlaces Framework Reference

# GMSPlaceSearchByTextRankPreference

    enum GMSPlaceSearchByTextRankPreference : NSInteger {}

How results will be ranked in the response.
- `


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


  `

  #### Declaration

  Swift

      case distance = 0

  Objective-C

      GMSPlaceSearchByTextRankPreferenceDistance

- `


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


  `

  #### Declaration

  Swift

      case relevance = 1

  Objective-C

      GMSPlaceSearchByTextRankPreferenceRelevance