Skip to main content

Class: WT21CoordinatesUtils

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21CoordinatesUtils.ts:25

Utilities for parsing coordinates in the WT21 supported formats

Constructors​

Constructor​

new WT21CoordinatesUtils(): WT21CoordinatesUtils

Returns​

WT21CoordinatesUtils

Methods​

parseLatLong()​

static parseLatLong(str, acceptShortForm): null | CoordinatesInput

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21CoordinatesUtils.ts:34

Parses a string according to the LAT LONG format

Parameters​

ParameterTypeDefault valueDescription
strstringundefinedthe string to parse
acceptShortFormbooleantruewhether to accept the short (XYYZUU/XYYUUZ) formats

Returns​

null | CoordinatesInput

a LatLongInterface object if a valid PBPB definition and null otherwise