georange
1.0.0, released 6 years ago by an unverified publisher
Encode and decode geohashes, calculate distances, and generate ranges for database queries.
What it does
Georange helps encode and decode geohashes, calculate distances between two geographic points, and generate latitudinal and longitudinal ranges represented as geohashes to aid in database querying (tested on Firestore).
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to query geographic bounding boxes in Firestore using geohashes.
- You want to calculate distances between coordinates in kilometers.
Skip it when
- You require complex map widgets or interactive UI components.
- You need a robust backend-agnostic spatial database solution beyond simple range queries.
Strengths
- Simple API for geohash encoding and decoding.
- Calculates distance between coordinates out of the box.
- Provides helper methods to generate query ranges for databases like Firestore.
Weaknesses
- Only explicitly tested on Firestore.
- Limited documentation beyond basic geohash ranges and distance.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
import 'package:georange/georange.dart';
GeoRange georange = GeoRange();
var encoded = georange.encode(-1.2862368, 36.8195783);
Point decoded = georange.decode('kzf0tvg5n');
var distance = georange.distance(point1, point2);Alternatives
Packages that do the same job and could replace georange.
- flutter_geo_hash
Geohash encoding, decoding, neighbors, and distance helpers for Dart and Flutter.
68Compare - fluster
A Dart library that clusters geospatial points for map visualizations.
50Compare - haversine_distance
Calculate the distance between two latitude and longitude coordinates
38Compare