Class: RunwayUtils
Methods for working with Runways and Runway Designations.
Constructors
constructor
• new RunwayUtils(): RunwayUtils
Returns
Properties
tempGeoPoint
▪ Static
Protected
tempGeoPoint: GeoPoint
Defined in
src/sdk/navigation/RunwayUtils.ts:68
Methods
createEmptyOneWayRunway
▸ createEmptyOneWayRunway(): OneWayRunway
Creates an empty one-way runway.
Returns
an empty one-way runway.
Defined in
src/sdk/navigation/RunwayUtils.ts:87
createRunwayFacility
▸ createRunwayFacility(airport
, runway
): RunwayFacility
Creates a runway waypoint facility from a runway.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The runway's parent airport. |
runway | OneWayRunway | A one-way runway. |
Returns
A runway waypoint facility corresponding to the runway.
Defined in
src/sdk/navigation/RunwayUtils.ts:489
getBcFrequency
▸ getBcFrequency(airport
, runwayNumber
, runwayDesignator
): undefined
| FacilityFrequency
Gets the back course frequency for a runway.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport to which the query runway belongs. |
runwayNumber | number | The number of the query runway. |
runwayDesignator | RunwayDesignator | The designator of the query runway. |
Returns
undefined
| FacilityFrequency
The bc frequency for the query runway, or undefined if one could not be found.
Defined in
src/sdk/navigation/RunwayUtils.ts:406
getDesignatorLetter
▸ getDesignatorLetter(designator
, lowerCase?
): string
Gets the letter for a runway designator.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
designator | RunwayDesignator | undefined | A runway designator. |
lowerCase | boolean | false | Whether the letter should be lower case. False by default. |
Returns
string
The letter for the specified runway designator.
Defined in
src/sdk/navigation/RunwayUtils.ts:76
getLocFrequency
▸ getLocFrequency(airport
, runway
): undefined
| FacilityFrequency
Gets the localizer frequency for a runway.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport to which the query runway belongs. |
runway | OneWayRunway | The query runway. |
Returns
undefined
| FacilityFrequency
The localizer frequency for the query runway, or undefined if one could not be found.
Defined in
src/sdk/navigation/RunwayUtils.ts:347
▸ getLocFrequency(airport
, runwayDesignation
): undefined
| FacilityFrequency
Gets the localizer frequency for a runway.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport to which the query runway belongs. |
runwayDesignation | string | The designation of the query runway. |
Returns
undefined
| FacilityFrequency
The localizer frequency for the query runway, or undefined if one could not be found.
Defined in
src/sdk/navigation/RunwayUtils.ts:354
▸ getLocFrequency(airport
, runwayNumber
, runwayDesignator
): undefined
| FacilityFrequency
Gets the localizer frequency for a runway.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport to which the query runway belongs. |
runwayNumber | number | The number of the query runway. |
runwayDesignator | RunwayDesignator | The designator of the query runway. |
Returns
undefined
| FacilityFrequency
The localizer frequency for the query runway, or undefined if one could not be found.
Defined in
src/sdk/navigation/RunwayUtils.ts:362
getOneWayRunways
▸ getOneWayRunways(runway
, index
): OneWayRunway
[]
Utility method to return two one-way runways from a single runway facility
Parameters
Name | Type | Description |
---|---|---|
runway | AirportRunway | is the AirportRunway object to evaluate |
index | number | is the index of the AirportRunway in the Facility |
Returns
splitRunways array of OneWayRunway objects
Defined in
src/sdk/navigation/RunwayUtils.ts:129
getOneWayRunwaysFromAirport
▸ getOneWayRunwaysFromAirport(airport
): OneWayRunway
[]
Utility method to return all of the one-way runways from a single airport facility
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | is the Airport Facility to evaluate |
Returns
all of the one-way runways in the airport facility, sorted.
Defined in
src/sdk/navigation/RunwayUtils.ts:113
getOppositeOneWayRunway
▸ getOppositeOneWayRunway(airport
, runwayNumber
, runwayDesignator
): undefined
| OneWayRunway
Get the opposite one way runway from a runway number and designator.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport to which the query runway belongs. |
runwayNumber | number | The number of the query runway. |
runwayDesignator | RunwayDesignator | The designator of the query runway. |
Returns
undefined
| OneWayRunway
The opposite one way runway for the query runway, or undefined if one could not be found.
Defined in
src/sdk/navigation/RunwayUtils.ts:424
getProceduresForRunway
▸ getProceduresForRunway(procedures
, runway
): ApproachProcedure
[]
Utility method to return the procedures for a given runway.
Parameters
Name | Type | Description |
---|---|---|
procedures | readonly ApproachProcedure [] | The procedures for the airport. |
runway | AirportRunway | The given runway to find procedures for. |
Returns
A list of approach procedures for the given runway.
Defined in
src/sdk/navigation/RunwayUtils.ts:314
getRunwayCode
▸ getRunwayCode(number
): string
Gets an alpha code from a runway number.
Parameters
Name | Type | Description |
---|---|---|
number | number | is the runway number. |
Returns
string
a letter.
Defined in
src/sdk/navigation/RunwayUtils.ts:507
getRunwayFacilityIcao
▸ getRunwayFacilityIcao(airport
, runway
): string
Gets the ICAO string for the runway facility associated with a one-way runway.
Parameters
Name | Type | Description |
---|---|---|
airport | string | AirportFacility | The runway's parent airport, or the ICAO of the airport. |
runway | OneWayRunway | A one-way runway. |
Returns
string
the ICAO string for the runway facility associated with the one-way runway.
Defined in
src/sdk/navigation/RunwayUtils.ts:478
getRunwayNameString
▸ getRunwayNameString(runwayNumber
, designator
, padded?
, prefix?
): string
Utility method to return the runway name from the number and designator (L/R/C/W)
Parameters
Name | Type | Default value | Description |
---|---|---|---|
runwayNumber | number | undefined | is the integer part of a runway name (18, 26, 27, etc) |
designator | RunwayDesignator | undefined | is the RunwayDesignator enum for the runway |
padded | boolean | true | Whether single-char runways should be 0-padded. |
prefix | string | '' | A prefix to put before the runway name. |
Returns
string
the runway name string
Defined in
src/sdk/navigation/RunwayUtils.ts:216
getRunwayNumberPrimary
▸ getRunwayNumberPrimary(runway
): number
Gets the primary runway number for a paired runway.
Parameters
Name | Type | Description |
---|---|---|
runway | AirportRunway | A paired runway. |
Returns
number
The primary runway number for the specified runway.
Defined in
src/sdk/navigation/RunwayUtils.ts:230
getRunwayNumberSecondary
▸ getRunwayNumberSecondary(runway
): undefined
| number
Gets the secondary runway number for a paired runway.
Parameters
Name | Type | Description |
---|---|---|
runway | AirportRunway | A paired runway. |
Returns
undefined
| number
The secondary runway number for the specified runway, or undefined
if the runway has no secondary
runway.
Defined in
src/sdk/navigation/RunwayUtils.ts:245
getRunwayPairNameString
▸ getRunwayPairNameString(runway
, padded?
): string
Gets a name for a paired runway. Names are formatted as dash-separated pairs of directional (one-way) runway designations, with optional leading zero padding of the runway numbers. If the specified runway is not paired, then the name will be the designation of the primary runway only.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
runway | AirportRunway | undefined | A paired runway. |
padded | boolean | true | Whether the runway numbers should be padded with leading zeroes. Defaults to true . |
Returns
string
The name for the specified paired runway.
Defined in
src/sdk/navigation/RunwayUtils.ts:198
getSurfaceCategory
▸ getSurfaceCategory(runway
): RunwaySurfaceCategory
Gets the runway surface category from a runway or runway surface type.
Parameters
Name | Type | Description |
---|---|---|
runway | AirportRunway | RunwaySurfaceType | OneWayRunway | A runway or runway surface type. |
Returns
The surface category of the specified runway or runway surface type.
Defined in
src/sdk/navigation/RunwayUtils.ts:517
matchOneWayRunway
▸ matchOneWayRunway(airport
, runwayNumber
, runwayDesignator
): undefined
| OneWayRunway
Gets a one-way runway from an airport that matches a runway designation by number and designator.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport facility in which to search for the match. |
runwayNumber | number | A runway number to match. |
runwayDesignator | RunwayDesignator | A runway designator to match. |
Returns
undefined
| OneWayRunway
The one-way runway which matches the designation, or undefined if no match could be found.
Defined in
src/sdk/navigation/RunwayUtils.ts:261
matchOneWayRunwayFromDesignation
▸ matchOneWayRunwayFromDesignation(airport
, designation
): undefined
| OneWayRunway
Gets a one-way runway from an airport that matches a runway designation string.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport facility in which to search for the match. |
designation | string | A runway designation. |
Returns
undefined
| OneWayRunway
The one-way runway which matches the designation, or undefined if no match could be found.
Defined in
src/sdk/navigation/RunwayUtils.ts:285
matchOneWayRunwayFromIdent
▸ matchOneWayRunwayFromIdent(airport
, ident
): undefined
| OneWayRunway
Gets a one-way runway from an airport that matches a runway ident.
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport facility in which to search for the match. |
ident | string | A runway ident. |
Returns
undefined
| OneWayRunway
The one-way runway which matches the ident, or undefined if no match could be found.
Defined in
src/sdk/navigation/RunwayUtils.ts:304
sortRunways
▸ sortRunways(r1
, r2
): number
A comparer for sorting runways by number, and then by L, C, and R.
Parameters
Name | Type | Description |
---|---|---|
r1 | OneWayRunway | The first runway to compare. |
r2 | OneWayRunway | The second runway to compare. |
Returns
number
-1 if the first is before, 0 if equal, 1 if the first is after.
Defined in
src/sdk/navigation/RunwayUtils.ts:449