Skip to main content

Class: UserFacilityUtils

Defined in: src/sdk/navigation/FacilityUtils.ts:325

Utility functions for working with user facilities.

Constructors

Constructor

new UserFacilityUtils(): UserFacilityUtils

Returns

UserFacilityUtils

Methods

createFromLatLon()

Call Signature

static createFromLatLon(icao, lat, lon, isTemporary?, name?): UserFacility

Defined in: src/sdk/navigation/FacilityUtils.ts:338

Creates a user facility from latitude/longitude coordinates.

Parameters
ParameterTypeDescription
icaostringThe ICAO string of the new facility.
latnumberThe latitude of the new facility.
lonnumberThe longitude of the new facility.
isTemporary?booleanWhether the new facility is temporary. Defaults to false.
name?stringThe name of the new facility. Defaults to empty string.
Returns

UserFacility

A new user facility.

Deprecated

Use the IcaoValue overload instead.

Call Signature

static createFromLatLon(icao, lat, lon, isTemporary?, name?): UserFacility

Defined in: src/sdk/navigation/FacilityUtils.ts:348

Creates a user facility from latitude/longitude coordinates.

Parameters
ParameterTypeDescription
icaoIcaoValueThe ICAO value of the new facility.
latnumberThe latitude of the new facility.
lonnumberThe longitude of the new facility.
isTemporary?booleanWhether the new facility is temporary. Defaults to false.
name?stringThe name of the new facility. Defaults to empty string.
Returns

UserFacility

A new user facility.


createFromRadialDistance()

Call Signature

static createFromRadialDistance(icao, reference, radial, distance, isTemporary?, name?): UserFacility

Defined in: src/sdk/navigation/FacilityUtils.ts:377

Creates a user facility from a radial and distance relative to a reference facility.

Parameters
ParameterTypeDescription
icaostringThe ICAO string of the new facility.
referenceFacilityThe reference facility.
radialnumberThe magnetic radial, in degrees, of the reference facility on which the new facility lies.
distancenumberThe distance, in nautical miles, from the reference facility.
isTemporary?booleanWhether the new facility is temporary. Defaults to false.
name?stringThe name of the new facility. Defaults to empty string.
Returns

UserFacility

A new user facility.

Deprecated

Use the IcaoValue overload instead.

Call Signature

static createFromRadialDistance(icao, reference, radial, distance, isTemporary?, name?): UserFacility

Defined in: src/sdk/navigation/FacilityUtils.ts:388

Creates a user facility from a radial and distance relative to a reference facility.

Parameters
ParameterTypeDescription
icaoIcaoValueThe ICAO value of the new facility.
referenceFacilityThe reference facility.
radialnumberThe magnetic radial, in degrees, of the reference facility on which the new facility lies.
distancenumberThe distance, in nautical miles, from the reference facility.
isTemporary?booleanWhether the new facility is temporary. Defaults to false.
name?stringThe name of the new facility. Defaults to empty string.
Returns

UserFacility

A new user facility.


createFromRadialRadial()

Call Signature

static createFromRadialRadial(icao, reference1, radial1, reference2, radial2, isTemporary?, name?): undefined | UserFacility

Defined in: src/sdk/navigation/FacilityUtils.ts:424

Creates a user facility from a radial and distance relative to a reference facility.

Parameters
ParameterTypeDescription
icaostringThe ICAO string of the new facility.
reference1FacilityThe first reference facility.
radial1numberThe magnetic radial, in degrees, of the first reference facility on which the new facility lies.
reference2FacilityThe second reference facility.
radial2numberThe magnetic radial, in degrees, of the second reference facility on which the new facility lies.
isTemporary?booleanWhether the new facility is temporary. Defaults to false.
name?stringThe name of the new facility. Defaults to empty string.
Returns

undefined | UserFacility

A new user facility, or undefined if the specified radials do not intersect at a unique point.

Deprecated

Use the IcaoValue overload instead.

Call Signature

static createFromRadialRadial(icao, reference1, radial1, reference2, radial2, isTemporary?, name?): undefined | UserFacility

Defined in: src/sdk/navigation/FacilityUtils.ts:444

Creates a user facility from a radial and distance relative to a reference facility.

Parameters
ParameterTypeDescription
icaoIcaoValueThe ICAO value of the new facility.
reference1FacilityThe first reference facility.
radial1numberThe magnetic radial, in degrees, of the first reference facility on which the new facility lies.
reference2FacilityThe second reference facility.
radial2numberThe magnetic radial, in degrees, of the second reference facility on which the new facility lies.
isTemporary?booleanWhether the new facility is temporary. Defaults to false.
name?stringThe name of the new facility. Defaults to empty string.
Returns

undefined | UserFacility

A new user facility, or undefined if the specified radials do not intersect at a unique point.