Class MaidenheadCalculator

java.lang.Object
org.marsik.ham.grid.MaidenheadCalculator

public class MaidenheadCalculator extends Object
  • 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 convert
      precision - precision of the generated maidenhead locator 4/6/8/10 characters
      Returns:
      maidenhead for given coordinates, at precision
    • toMaidenhead

      public static String toMaidenhead(org.gavaghan.geodesy.GlobalCoordinates coordinates)
    • fromMaidenhead

      public static org.gavaghan.geodesy.GlobalCoordinates fromMaidenhead(String locator)