gis-tools-ts - v0.6.0
    Preparing search index...

    Function mgrsForward

    • Convert lat/lon to MGRS.

      Parameters

      • ll: VectorPoint

        Array with longitude and latitude on a WGS84 ellipsoid.

      • Optionalaccuracy: number

        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 string

      the MGRS string for the given location and accuracy.