com.berico.coords.Example Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ww-geo-coords Show documentation
Show all versions of ww-geo-coords Show documentation
MGRS coordinate conversion lib stripped from WW
The newest version!
package com.berico.coords;
public class Example
{
public static void main( String[] args )
{
String mgrs = Coordinates.mgrsFromLatLon(37.10, -112.12);
System.out.println(mgrs);
double[] latLon = Coordinates.latLonFromMgrs(mgrs);
System.out.println(
String.format("%s, %s", latLon[0], latLon[1]));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy