Package org.ka2ddo.opentrac
Class OpenTracSymbols
java.lang.Object
org.ka2ddo.opentrac.OpenTracSymbols
Services for looking up OpenTRAC symbols and translating them to and from APRS symbols.
- Author:
- Andrew Pavlin, KA2DDO
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the APRS symbol table ID and code corresponding to the specified OpenTRAC symbol specification.static String
getOpenTracSymbolCode
(String aprsSymbolCode) Get the OpenTracMapSymbol code corresponding to the specified APRS symbol.static String
Get the description associated with an OpenTracMapSymbol.
-
Method Details
-
getOpenTracSymbolCode
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
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
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
-