maps_toolkit 1.0.1 maps_toolkit: ^1.0.1 copied to clipboard
Maps toolkit - different geo-measurements utils - area of polygon, distance between point, heading and offset between points (port of SphericalUtil from Java-library `android-maps-utils`).
example/maps_toolkit_example.dart
import 'package:maps_toolkit/maps_toolkit.dart';
main() {
var cityLondon = LatLng(51.5073509, -0.1277583);
var cityParis = LatLng(48.856614, 2.3522219);
print("Distance between London and Paris is ${SphericalUtil.computeDistanceBetween(cityLondon, cityParis) / 1000.0} km.");
}