MIST getLLString

From DCS World Wiki - Hoggitworld.com


Added with: Mist 3.0
Returns a string of the average position of units defined by a UnitNameTable in the Latitude and Longitude format to the specified accuracy. If the optional variable DMS exists, the format will be in Degrees Minutes Seconds. If DMS is not present the format will be in Degrees Minutes Thousandths of Minutes.
string mist.getLLString(table vars )
Valid Input Values:

vars tables have the following recognized fields( required entries in blue, optional in green):

 vars = 
 units = UnitNameTable units, 
 acc = number acc,
 DMS = boolean DMS,

units is a UnitNameTable- a table of unit names that follow a special set of rules (see the entry on UnitNameTables).

acc is the accuracy of the coordinate

DMS is an optional variable that if present will return the string in Degrees minutes seconds format. If not present the string will be in Degrees Minutes Thousandths of Minutes.

Return value:
Return example:
40 09' 00.000"N 43 30' 00.000"E
Usage Examples:
Returns a string with 3 decimal places in Degrees Minutes Seconds format.
  local str = mist.getLLString(units = mist.makeUnitsTable({"[g]arty"}), acc = 3, DMS = true)
Related Functions
tostringMGRS, tostringLL, tostringBR, getMGRSString, getLLString, getBRString, getLeadingPos, getLeadingMGRSString, getLeadingLLString, getLeadingBRString, getMilString, getClockString, getDateString, stringMatch, stringCondense

Scripting Engine

MIST Root Page