toMgrs method
Converts this geographic position (latitude and longitude as geodetic coordinates) first to projected UTM coordinates and then from UTM coordinates to the MGRS grid reference.
May throw a FormatException if conversion fails.
Examples:
const geographic = Geographic(lat: 48.8582, lon: 2.2945);
final mgrsRef = geographic.toMgrs(); // 31U DQ 48251 11932
Implementation
Mgrs toMgrs({Datum datum = Datum.WGS84}) =>
toUtm(datum: datum, roundResults: false).toMgrs();