Class: WT21CoordinatesUtils
Utilities for parsing coordinates in the WT21 supported formats
Constructors
constructor
• new WT21CoordinatesUtils(): WT21CoordinatesUtils
Returns
Methods
parseLatLong
▸ parseLatLong(str
, acceptShortForm?
): null
| CoordinatesInput
Parses a string according to the LAT LONG format
Parameters
Name | Type | Default value | Description |
---|---|---|---|
str | string | undefined | the string to parse |
acceptShortForm | boolean | true | whether to accept the short (XYYZUU/XYYUUZ) formats |
Returns
null
| CoordinatesInput
a LatLongInterface object if a valid PBPB definition and null
otherwise
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21CoordinatesUtils.ts:34