Class: ICAO
Defined in: src/sdk/navigation/Facilities.ts:1274
Methods for working with FS ICAO strings.
Constructors
Constructor
new ICAO():
ICAO
Returns
ICAO
Properties
emptyIcao
readonly
static
emptyIcao:" "
=' '
Defined in: src/sdk/navigation/Facilities.ts:1279
An empty ICAO.
Methods
getAssociatedAirportIdent()
static
getAssociatedAirportIdent(icao
):string
Defined in: src/sdk/navigation/Facilities.ts:1313
Returns the ident of the icao's associated airport. (ex. for terminal waypoints)
Parameters
Parameter | Type | Description |
---|---|---|
icao | string | The icao to get the airport ident for. |
Returns
string
The airport ident.
getFacilityType()
static
getFacilityType(icao
):FacilityType
Defined in: src/sdk/navigation/Facilities.ts:1287
Gets the facility type from an ICAO.
Parameters
Parameter | Type | Description |
---|---|---|
icao | string | The icao to get the facility type for. |
Returns
The ICAO facility type.
Throws
An error if the facility type cannot be determined.
getIdent()
static
getIdent(icao
):string
Defined in: src/sdk/navigation/Facilities.ts:1350
Gets the ident for a given ICAO string.
Parameters
Parameter | Type | Description |
---|---|---|
icao | string | The FS ICAO to get the ident for. |
Returns
string
The ICAO ident.
getRegionCode()
static
getRegionCode(icao
):string
Defined in: src/sdk/navigation/Facilities.ts:1359
Gets the region code for a given ICAO string.
Parameters
Parameter | Type | Description |
---|---|---|
icao | string | The FS ICAO to get the ident for. |
Returns
string
The two letter region code.
isFacility()
static
isFacility(icao
,type?
):boolean
Defined in: src/sdk/navigation/Facilities.ts:1324
Checks whether an ICAO string defines a facility (optionally of a specific type).
Parameters
Parameter | Type | Description |
---|---|---|
icao | string | An ICAO string. |
type? | FacilityType | The specific facility type to check against. If not defined, this method will return true as long as the ICAO string defines any valid facility type. |
Returns
boolean
Whether the given ICAO string defines a facility of the specified type.