dart_geohash
2.1.0, released 3 years ago by frawley.me
Encode, decode, and find neighbors for longitude/latitude and geohashes.
WASM-ready
What it does
Provides classes and functions to encode latitude and longitude coordinates into geohash strings and decode them back. It also supports finding surrounding neighbor geohashes.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to store geographic locations as strings using the geohash format.
- You need to find neighboring geohashes for a given location or hash.
Skip it when
- You need full map rendering, UI components, or geolocation tracking.
- You require complex geofencing features.
Strengths
- Simple API for encoding and decoding geohashes.
- Includes neighbor finder features.
- No external dependencies.
Weaknesses
- Limited scope restricted strictly to geohash string manipulations.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
GeoHash myHash = GeoHash("9yf0zhhtj");
myHash.longitude();
myHash.latitude(decimalAccuracy: 4);
GeoHash myOtherHash = GeoHash.fromDecimalDegrees(-98.1235, 38.1234);Alternatives
Packages that do the same job and could replace dart_geohash.
- flutter_geo_hash
Geohash encoding, decoding, neighbors, and distance helpers for Dart and Flutter.
68Compare - google_maps_utils
Port of Google's android-maps-utils for spherical geometry, polylines, and math in Dart.
66Compare - vector_tile
Encode and decode Mapbox Vector Tile (MVT) files to/from raw and GeoJSON formats.
55Compare