Package org.marsik.ham.grid
Class MaidenheadCalculator
java.lang.Object
org.marsik.ham.grid.MaidenheadCalculator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int[]static double[]static double[]static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gavaghan.geodesy.GlobalCoordinatesfromMaidenhead(String locator) static StringtoMaidenhead(org.gavaghan.geodesy.GlobalCoordinates coordinates) static StringtoMaidenhead(org.gavaghan.geodesy.GlobalCoordinates coordinates, int precision) Get coordinates as a Maidenhead locator string.
-
Field Details
-
MAIDENHEAD_LON_PRECISION
public static double[] MAIDENHEAD_LON_PRECISION -
MAIDENHEAD_LAT_PRECISION
public static double[] MAIDENHEAD_LAT_PRECISION -
MAIDENHEAD_MAX_PRECISION
public static int MAIDENHEAD_MAX_PRECISION -
MAIDENHEAD_CHARS
public static int[] MAIDENHEAD_CHARS
-
-
Constructor Details
-
MaidenheadCalculator
public MaidenheadCalculator()
-
-
Method Details
-
toMaidenhead
public static String toMaidenhead(org.gavaghan.geodesy.GlobalCoordinates coordinates, int precision) Get coordinates as a Maidenhead locator string. http://home.comcast.net/~lespeters/PROJECTS/How%20to%20calculate%20your%208-digit%20grid%20square.pdf- Parameters:
coordinates- coordinates to convertprecision- precision of the generated maidenhead locator 4/6/8/10 characters- Returns:
- maidenhead for given coordinates, at precision
-
toMaidenhead
-
fromMaidenhead
-