mgrs_forward

Function mgrs_forward 

Source
pub fn mgrs_forward<P: TransformCoordinates>(
    ll: &P,
    accuracy: Option<u8>,
) -> String
Expand description

Convert lat/lon to MGRS.

  • ll: Array with longitude and latitude on a WGS84 ellipsoid.
  • accuracy: Accuracy in digits (5 for 1 m, 4 for 10 m, 3 for 100 m, 2 for 1 km, 1 for 10 km or 0 for 100 km). Optional, default is 5.

returns the MGRS string for the given location and accuracy.