neighbors method

TQuery neighbors(
  1. ModelGeoValue? value
)

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,
      ],
    ),
  );
}