Skip to main content
The _geoRadius filter returns documents located within a circular area defined by a center point and a radius. This is the most common geo filter, useful for “find nearby” features like store locators, restaurant finders, or service area lookups.

Syntax

The distance is always expressed in meters. For example, use 2000 for a 2 km radius or 500 for 500 meters.

Filter by radius

The following example searches for restaurants within 2 km of central Milan (latitude 45.472735, longitude 9.184019):
Meilisearch returns all documents with a _geo location inside the specified circle:

Understanding _geoDistance

When you use _geoRadius, Meilisearch automatically includes a _geoDistance field in each result. This value represents the distance in meters between the document’s location and the center point of your radius filter.
_geoDistance is a computed field that only appears in search results. It is not stored in your documents and cannot be used as a filter.

Combine with other filters

You can combine _geoRadius with any other filter using AND and OR operators. The following example finds only pizzerias within 2 km of central Milan:

Common radius values

Geo search overview

Learn about all geo search capabilities in Meilisearch.

Search API reference

Full reference for the search endpoint and filter parameter.