maps_toolkit2 1.0.1+1 copy "maps_toolkit2: ^1.0.1+1" to clipboard
maps_toolkit2: ^1.0.1+1 copied to clipboard

Maps toolkit - geo-measurements utils - area of polygon, distance between point, heading and offset between points (port of SphericalUtil, PolyUtil from `android-maps-utils`).

example/main.dart

import 'package:maps_toolkit2/maps_toolkit2.dart';

void main() {
  final cityLondon = LatLng(51.5073509, -0.1277583);
  final cityParis = LatLng(48.856614, 2.3522219);

  final distance =
      SphericalUtil.computeDistanceBetween(cityLondon, cityParis) / 1000.0;

  print('Distance between London and Paris is $distance km.');
}
0
likes
150
pub points
36%
popularity

Publisher

verified publisherfaqcodes.dev

Maps toolkit - geo-measurements utils - area of polygon, distance between point, heading and offset between points (port of SphericalUtil, PolyUtil from `android-maps-utils`).

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

latlong2

More

Packages that depend on maps_toolkit2