Class: UserFacilityUtils
Utility functions for working with user facilities.
Constructors
constructor
• new UserFacilityUtils(): UserFacilityUtils
Returns
Methods
createFromLatLon
▸ createFromLatLon(icao
, lat
, lon
, isTemporary?
, name?
): UserFacility
Creates a user facility from latitude/longitude coordinates.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
icao | string | undefined | The ICAO string of the new facility. |
lat | number | undefined | The latitude of the new facility. |
lon | number | undefined | The longitude of the new facility. |
isTemporary | boolean | false | Whether the new facility is temporary. |
name? | string | undefined | The name of the new facility. |
Returns
A new user facility.
Defined in
src/sdk/navigation/Facilities.ts:1647
createFromRadialDistance
▸ createFromRadialDistance(icao
, reference
, radial
, distance
, isTemporary?
, name?
): UserFacility
Creates a user facility from a radial and distance relative to a reference facility.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
icao | string | undefined | The ICAO string of the new facility. |
reference | Facility | undefined | The reference facility. |
radial | number | undefined | The magnetic radial, in degrees, of the reference facility on which the new facility lies. |
distance | number | undefined | The distance, in nautical miles, from the reference facility. |
isTemporary | boolean | false | Whether the new facility is temporary. |
name? | string | undefined | The name of the new facility. |
Returns
A new user facility.
Defined in
src/sdk/navigation/Facilities.ts:1672
createFromRadialRadial
▸ createFromRadialRadial(icao
, reference1
, radial1
, reference2
, radial2
, isTemporary?
, name?
): undefined
| UserFacility
Creates a user facility from a radial and distance relative to a reference facility.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
icao | string | undefined | The ICAO string of the new facility. |
reference1 | Facility | undefined | The first reference facility. |
radial1 | number | undefined | The magnetic radial, in degrees, of the first reference facility on which the new facility lies. |
reference2 | Facility | undefined | The second reference facility. |
radial2 | number | undefined | The magnetic radial, in degrees, of the second reference facility on which the new facility lies. |
isTemporary | boolean | false | Whether the new facility is temporary. |
name? | string | undefined | The name of the new facility. |
Returns
undefined
| UserFacility
A new user facility, or undefined
if the specified radials do not intersect at a unique point.
Defined in
src/sdk/navigation/Facilities.ts:1703