geodesy
0.12.0, released 5 weeks ago by an unverified publisher
A Dart library for geodesic and trigonometric calculations with geographical points and paths.
What it does
Provides a collection of methods for performing geodetic calculations like distance calculations, point intersections, bearings, and destinations based on a spherical Earth model. It is designed to work with geographical coordinates in the form of latitude and longitude.
AI-written summary of version 0.12.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to calculate distances, bearings, or destinations between geographical coordinates.
- You are working with paths, polylines, or polygons and need to measure lengths or areas.
Skip it when
- You need an interactive map UI widget rather than just backend/mathematical geodetic calculations.
Strengths
- Comprehensive collection of geodetic and trigonometric calculation methods.
- Supports static methods without needing an instance.
- Includes support for metric unit conversions and polygon area calculations.
Weaknesses
- Relies on a spherical Earth model rather than a fully ellipsoidal model for all operations.
- Limited documentation embedded directly in README besides external links.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:geodesy/geodesy.dart';
final geodesy = Geodesy();
LatLng l1 = LatLng(51.5074, -0.1278);
LatLng l2 = LatLng(48.8566, 2.3522);
num distance = geodesy.distanceBetweenTwoGeoPoints(l1, l2);Alternatives
Packages that do the same job and could replace geodesy.
- geodart
A geospatial library for Dart for working with vector features and geographic data.
59Compare - flutter_map_math
Utility library for common geospatial calculations in Flutter
44Compare
Works with
Packages commonly used together with geodesy: ones it builds on, ones built on it, and its own family.