Skip to main content
  • Type: string
  • Default: null
  • Scope: search
The aroundLatLng parameter defines a center for geo-based search. Only records within a computed radius of this location are returned, ranked by proximity. Format: "latitude, longitude" (for example, "40.71, -74.01") To learn more, see Geo location.

Usage

  • The radius of the search area is controlled by:
  • The actual radius is computed dynamically based on record density:
    • Denser areas = smaller radius
    • Sparser areas = larger radius
  • Setting getRankingInfo to true adds the distance from the center to each result.
  • This parameter is ignored if insideBoundingBox or insidePolygon is used.
  • To use the user’s IP location as the center, see aroundLatLngViaIP.

Example

Current API clients

index.Search(new Query("query")
{
    AroundLatLng = "40.71, -74.01"
});
index.Search(new Query("query")
{
    AroundLatLng = "40.71, -74.01"
});
I