setMinimumAroundRadius method
MinimumAroundRadius
Minimum radius (in meters) used for a geo search when aroundRadius
is not set.
When a radius is automatically generated, the area of the circle might be too small to include enough records. This setting allows you to increase the size of the circle, thus ensuring sufficient coverage.
Usage notes:
- This setting only works within the context of a circular geo search,
enabled by
aroundLatLng
oraroundLatLngViaIP
. - This parameter is ignored when
aroundRadius
is set.
1 = 1 Meter
Therefore for 1000 = 1 Kilometer
'minimumAroundRadius' => 1000
// 1km
Source: Learn more
Implementation
AlgoliaQuery setMinimumAroundRadius(int value) {
assert(!_parameters.containsKey('minimumAroundRadius'));
return _copyWithParameters(<String, dynamic>{'minimumAroundRadius': value});
}