TheDocumentation Index
Fetch the complete documentation index at: https://algolia.com/llms.txt
Use this file to discover all available pages before exploring further.
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
geocriterion must be in your ranking formula (default behavior). - If you set a value below
10, Algolia uses10as 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.Examples
Specify a number
Current API clients
Current API clients
Legacy API clients
Legacy API clients
Specify range objects
Current API clients
Current API clients
Legacy API clients
Legacy API clients