Class OpenTracSymbols

java.lang.Object
org.ka2ddo.opentrac.OpenTracSymbols

public class OpenTracSymbols extends Object
Services for looking up OpenTRAC symbols and translating them to and from APRS symbols.
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • getOpenTracSymbolCode

      public static String getOpenTracSymbolCode(String aprsSymbolCode)
      Get the OpenTracMapSymbol code corresponding to the specified APRS symbol.
      Parameters:
      aprsSymbolCode - String of symbol table ID (or overlay) and symbol code
      Returns:
      packed hexadecimal form of OpenTracMapSymbol value, or null if no corresponding symbol
    • getAprsSymbolCode

      public static String getAprsSymbolCode(OpenTracMapSymbol otms)
      Get the APRS symbol table ID and code corresponding to the specified OpenTRAC symbol specification.
      Parameters:
      otms - OpenTracMapSymbol element containing the symbol specification
      Returns:
      2-character String of the APRS symbol, or null if no corresponding APRS symbol
    • getOpenTracSymbolDescription

      public static String getOpenTracSymbolDescription(OpenTracMapSymbol otms)
      Get the description associated with an OpenTracMapSymbol. If the specific symbol is not known, use the most detailed hierarchical parent symbol meaning currently known.
      Parameters:
      otms - OpenTracMapSymbol object containing a symbol byte array
      Returns:
      String description of the symbol, or null if no match can be found