neighbors method
You can filter only those elements that fall within the range of neighboring GeoHashes of value
.
value
の隣り合うGeoHashの範囲内に含む要素のみをフィルタリングすることができます。
Implementation
TQuery neighbors(ModelGeoValue? value) {
if (value == null) {
return _toQuery(_modelQuery);
}
return _toQuery(
_modelQuery.geo(
key,
[
value.value.geoHash,
...value.value.neighbors,
],
),
);
}