Enum RankPreference
- Namespace
- GoogleMapsApi.Entities.PlacesNew.Common
- Assembly
- GoogleMapsApi.dll
How search results should be ranked. Shared by Text Search and Nearby Search; note that the default differs by surface (Text Search defaults to Relevance, Nearby Search to Distance).
public enum RankPreference
Fields
[EnumMember(Value = "DISTANCE")] Distance = 1Rank results by distance from the query location.
[EnumMember(Value = "RELEVANCE")] Relevance = 2Rank results by relevance.
[EnumMember(Value = "RANK_PREFERENCE_UNSPECIFIED")] Unspecified = 0Rank preference unspecified; the API picks a per-surface default.