Class AerodromeDataStore
Object to hold basic aerodrome information
Inherited Members
Namespace: FpAssistantCore.Aerodromes
Assembly: FpAssistantCoreScl.dll
Syntax
public static class AerodromeDataStore
Remarks
This is a static class object
Methods
View SourceAsListString()
Method to return a list of aerodromes as list type of strings
Declaration
public static List<string> AsListString()
Returns
| Type | Description |
|---|---|
| List<string> | String lists of Aerodrome data |
Remarks
Contains all data, delimited by '|'
FindByIATACode(string)
Lookup an aerodrome by IATA code
Declaration
public static (bool result, Aerodrome aerodrome) FindByIATACode(string lookFor)
Parameters
| Type | Name | Description |
|---|---|---|
| string | lookFor | IATA code to look up in aerodrome internal list |
Returns
| Type | Description |
|---|---|
| (bool result, Aerodrome aerodrome) | Tuple: True if found else false, Aerodrome class object |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If parameter is null |
FindByICAOCode(string)
Lookup an aerodrome by ICAO code
Declaration
public static (bool result, Aerodrome aerodrome) FindByICAOCode(string lookFor)
Parameters
| Type | Name | Description |
|---|---|---|
| string | lookFor | ICAO code to look up in aerodrome internal list |
Returns
| Type | Description |
|---|---|
| (bool result, Aerodrome aerodrome) | Tuple: True if found else false, Aerodrome class object |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If parameter is null |
GetARPCoordinate(string)
Get ARP coordinate of an aerodrome found by IATA code
Declaration
public static GeoCoordinate GetARPCoordinate(string iataCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | iataCode | IATA code to look up i.e. LGW, LHR, LAX |
Returns
| Type | Description |
|---|---|
| GeoCoordinate | GeoCoordinate of the ARP |
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | If parameter is null |
TextSearch(string)
Method to return a list of aerodromes based on a query string
Declaration
public static List<Aerodrome> TextSearch(string query)
Parameters
| Type | Name | Description |
|---|---|---|
| string | query | Text literal search in Aerodrome data |
Returns
| Type | Description |
|---|---|
| List<Aerodrome> | List of aerodromes that atch text literal query search |
Remarks
If the query is a '*' then all aerodromes will be returned