google_maps_utils 1.1.0+2 copy "google_maps_utils: ^1.1.0+2" to clipboard
google_maps_utils: ^1.1.0+2 copied to clipboard

outdated

Android Google Maps Utils port. Initial version comes with the 3 main Classes of The Google Maps Utils. SphericalUtils, MathUtils and PolyUtils, classes used most for calculating bounds, distances hea [...]

example/example.dart

import 'package:google_maps_utils/google_maps_utils.dart';

void main() {
  LatLng from = LatLng(0.0, 0.0);
  LatLng to = LatLng(10.0, 5.0);
  LatLng randomPoint = LatLng(-23.54545, -23.898098);

  print('Distance: ' +
      SphericalUtils.computeDistanceBetween(from, to).toString());

  print('Heading: ' + SphericalUtils.computeHeading(from, to).toString());

  print('Angle: ' + SphericalUtils.computeAngleBetween(from, to).toString());

  print('Distance to Line: ' +
      PolyUtils.distanceToLine(randomPoint, from, to).toString());

  /// Distance: 1241932.6430813475
  /// Heading: 26.302486345342523
  /// Angle: 0.19493500057547358
  /// Distance to Line: 3675538.1518512294

  /// And Many more
}
60
likes
0
pub points
93%
popularity

Publisher

verified publisheradriankohls.app

Android Google Maps Utils port. Initial version comes with the 3 main Classes of The Google Maps Utils. SphericalUtils, MathUtils and PolyUtils, classes used most for calculating bounds, distances headings and many more For circular resources, markers and events for Google Maps. All the code are 100% ported from original sources, some modifications are expected to match and run Dart compiler.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, stack

More

Packages that depend on google_maps_utils