Class: UserFacilityUtils
Defined in: src/sdk/navigation/Facilities.ts:1647
Utility functions for working with user facilities.
Constructors
Constructor
new UserFacilityUtils():
UserFacilityUtils
Returns
UserFacilityUtils
Methods
createFromLatLon()
staticcreateFromLatLon(icao,lat,lon,isTemporary,name?):UserFacility
Defined in: src/sdk/navigation/Facilities.ts:1659
Creates a user facility from latitude/longitude coordinates.
Parameters
| Parameter | 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.
createFromRadialDistance()
staticcreateFromRadialDistance(icao,reference,radial,distance,isTemporary,name?):UserFacility
Defined in: src/sdk/navigation/Facilities.ts:1684
Creates a user facility from a radial and distance relative to a reference facility.
Parameters
| Parameter | 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.
createFromRadialRadial()
staticcreateFromRadialRadial(icao,reference1,radial1,reference2,radial2,isTemporary,name?):undefined|UserFacility
Defined in: src/sdk/navigation/Facilities.ts:1715
Creates a user facility from a radial and distance relative to a reference facility.
Parameters
| Parameter | 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.