geohash_bounds 0.1.0 copy "geohash_bounds: ^0.1.0" to clipboard
geohash_bounds: ^0.1.0 copied to clipboard

Pure-Dart geohash query bounds for Firestore spatial queries, with viewport-to-cell clustering and antimeridian handling.

0.1.0 #

Initial release.

  • GeohashUtil.encode — encode lat/lng into a geohash string.
  • GeohashUtil.queryBounds — geohash range bounds fully covering a circle, for Firestore-style string range queries (port of geofire-common).
  • GeohashUtil.cellsForViewport — enumerate coarse geohash cells covering a map viewport, for low-zoom cluster aggregation (e.g. one count() per cell).
  • GeohashUtil.viewportToCircle — convert viewport corners to center + radius, antimeridian-safe.
  • GeohashUtil.distanceBetween — Haversine distance in meters.
  • GeohashUtil.wrapLongitude — normalize longitudes into [-180, 180].
1
likes
160
points
137
downloads

Documentation

API reference

Publisher

verified publisherpinyourplate.app

Weekly Downloads

Pure-Dart geohash query bounds for Firestore spatial queries, with viewport-to-cell clustering and antimeridian handling.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on geohash_bounds