geodart
0.3.10, released 6 months ago by divvit.co
A geospatial library for Dart for working with vector features and geographic data.
What it does
Provides an interface for working with vector features like points, lines, and polygons, heavily based on the GeoJSON specification. Includes tools for spatial calculations, geometry conversions, and unit conversions for distance, area, and angles.
AI-written summary of version 0.3.10, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to parse or generate GeoJSON and WKT data in Dart or Flutter.
- You need to perform geospatial calculations like bounding boxes, intersections, and distances.
Skip it when
- You need a fully interactive map widget for UI rendering (use a mapping plugin instead).
Strengths
- Supports multiple vector feature types (Point, LineString, Polygon, FeatureCollection, etc.).
- Built-in unit conversion utilities for distance, area, and angles.
- Zero dependencies.
Weaknesses
- Feature coordinate handling is noted as somewhat messy by the maintainers.
- Does not provide UI components or map rendering widgets.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:geodart/conversions.dart';
// Ten miles to kilometers
convertDistance(10, DistanceUnits.miles, DistanceUnits.kilometers);Alternatives
Packages that do the same job and could replace geodart.
- turf
A turf.js-like geospatial analysis library working with GeoJSON, written in pure Dart.
83Compare - geodesy
A Dart library for geodesic and trigonometric calculations with geographical points and paths.
77Compare - geocore
Geospatial data structures and parsers for GeoJSON and WKT in Dart.
44Compare - yandex_geocoder
API to translate geographic coordinates into an address and vice versa using Yandex.
50Compare