- Type:
integer | list<object>
- Default:
10
- Min:
10
- Scope:
search
aroundPrecision
parameter controls how finely Algolia groups results by their distance from the search center.
This affects how the Geo ranking criterion treats nearby records.
Usage
- The
geo
criterion must be in your ranking formula (default behavior). - If you set a value below
10
, Algolia uses10
as the minimum. - Use an integer for a fixed grouping size in meters.
- Use a list of range objects to define custom precision ranges based on distance bands.
Options
integer
Groups results by distance in fixed increments.
For example,
aroundPrecision: 100
means records from 0 to 99 m are ranked equally, as are 100 to 199 m, and so on.list<object>
Provides variable precision at different distance ranges.
Each object must include a
from
and a value
.
For example: [{ "from": 0, "value": 25 }, { "from": 1000, "value": 2000 }]
means records between 0 and 999 m have a precision of 25 m,
and records above 1,000 m have a precision of 2,000 m.