geo
0.3.0, released 6 years ago by an unverified publisher
Utility library for geographic calculations and polyline encoding/decoding.
WASM-ready
What it does
Provides functions to compute distances, headings, destination points, and encode/decode polylines in the Google format. It also offers a simple LatLng type for coordinates.
AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need basic geodesic calculations in a Dart/Flutter app.
- You want to encode or decode polyline strings for mapping APIs.
- You need a lightweight, dependency-free library for coordinate math.
Skip it when
- You require advanced map rendering or integration with map widgets.
- You need geofencing or location services beyond simple math.
Strengths
- Pure Dart, no native dependencies.
- Supports null safety and is lightweight.
- Includes polyline codec for common mapping APIs.
Weaknesses
- No UI components or map rendering.
- Limited to basic geographic math only.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:geo/geo.dart';
final distance = Geo.distanceBetween(LatLng(40.7128, -74.0060), LatLng(34.0522, -118.2437));
print('Distance: $distance km');Alternatives
Packages that do the same job and could replace geo.
- flutter_geofire
Flutter plugin for realtime location queries using GeoFire and Firebase.
48Compare