Table of Contents

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 = 1

Rank results by distance from the query location.

[EnumMember(Value = "RELEVANCE")] Relevance = 2

Rank results by relevance.

[EnumMember(Value = "RANK_PREFERENCE_UNSPECIFIED")] Unspecified = 0

Rank preference unspecified; the API picks a per-surface default.