maps_toolkit
3.1.0, released 2 years ago by kb-apps.com
Geo-measurements utilities for area, distance, heading, and polygon operations.
WASM-ready
What it does
Provides utility functions such as SphericalUtil and PolygonUtil ported from android-maps-utils. It calculates distances, areas, headings, offsets, and polygon containments using latitude and longitude coordinates.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to calculate distances or areas between geographic coordinates in Dart or Flutter.
- You want to check if a point lies inside a polygon or on a path.
- You need to encode or decode polyline strings.
Skip it when
- You are looking for a complete map rendering widget (use flutter_map or google_maps_flutter instead).
- You need active location tracking of the device.
Strengths
- Pure Dart library with no external dependencies.
- Works across multiple platforms including Android, iOS, web, Windows, macOS, and Linux.
- Comprehensive port of well-tested Android maps utility algorithms.
Weaknesses
- Does not render maps or handle UI components by itself.
- Does not provide device location tracking features.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:maps_toolkit/maps_toolkit.dart';
main() {
val distanceBetweenPoints = SphericalUtil.computeDistanceBetween(
LatLng(51.5073509, -0.1277583),
LatLng(48.856614, 2.3522219)
);
}Alternatives
Packages that do the same job and could replace maps_toolkit.