Class: ICAO
Methods for working with FS ICAO strings.
Constructors
constructor
• new ICAO(): ICAO
Returns
Properties
emptyIcao
▪ Static
Readonly
emptyIcao: " "
An empty ICAO.
Defined in
src/sdk/navigation/Facilities.ts:1267
Methods
getAssociatedAirportIdent
▸ getAssociatedAirportIdent(icao
): string
Returns the ident of the icao's associated airport. (ex. for terminal waypoints)
Parameters
Name | Type | Description |
---|---|---|
icao | string | The icao to get the airport ident for. |
Returns
string
The airport ident.
Defined in
src/sdk/navigation/Facilities.ts:1301
getFacilityType
▸ getFacilityType(icao
): FacilityType
Gets the facility type from an ICAO.
Parameters
Name | 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.
Defined in
src/sdk/navigation/Facilities.ts:1275
getIdent
▸ getIdent(icao
): string
Gets the ident for a given ICAO string.
Parameters
Name | Type | Description |
---|---|---|
icao | string | The FS ICAO to get the ident for. |
Returns
string
The ICAO ident.
Defined in
src/sdk/navigation/Facilities.ts:1338
getRegionCode
▸ getRegionCode(icao
): string
Gets the region code for a given ICAO string.
Parameters
Name | Type | Description |
---|---|---|
icao | string | The FS ICAO to get the ident for. |
Returns
string
The two letter region code.
Defined in
src/sdk/navigation/Facilities.ts:1347
isFacility
▸ isFacility(icao
, type?
): boolean
Checks whether an ICAO string defines a facility (optionally of a specific type).
Parameters
Name | 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.
Defined in
src/sdk/navigation/Facilities.ts:1312