geohash_bounds 0.1.0
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 ofgeofire-common).GeohashUtil.cellsForViewport— enumerate coarse geohash cells covering a map viewport, for low-zoom cluster aggregation (e.g. onecount()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].