fromMGRS static method

LatLng fromMGRS(
  1. String mgrsString
)

Convert MGRS to lat/lon.

mgrsString: UPPERCASE coordinate string is expected in MGRS Return an object literal with easting, northing, zoneLetter, zoneNumber and accuracy (in meters) properties

Implementation

static LatLng fromMGRS(String mgrsString) {
  var ll = mgrs_dart.Mgrs.toPoint(mgrsString);
  return LatLng(ll[1], ll[0]);
}