mgrs_dart 0.0.1 copy "mgrs_dart: ^0.0.1" to clipboard
mgrs_dart: ^0.0.1 copied to clipboard

outdated

Utility for converting between WGS84 lat/lng and MGRS coordinates (Dart version of proj4js/mgrs).

example/mgrs_dart_example.dart

import 'package:mgrs_dart/mgrs_dart.dart';

void main() {
  List<double> point = [-115.08209766323476, 36.236123461597515];
  String mgrsString = '11SPA7234911844';
  int accuracy = 5;

  var calculatedPoint = Mgrs.toPoint(mgrsString);
  print('Mgrs.toPoint($mgrsString) = $calculatedPoint');

  var calculatedMgrsString = Mgrs.forward(point, accuracy);
  print('Mgrs.forward($point, $accuracy) = $calculatedMgrsString');

  // var calculatedBox = Mgrs.inverse(mgrsString);
  // print(calculatedBox);
}
4
likes
30
pub points
82%
popularity

Publisher

unverified uploader

Utility for converting between WGS84 lat/lng and MGRS coordinates (Dart version of proj4js/mgrs).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

unicode

More

Packages that depend on mgrs_dart