Class IcaoApiDataService
Easy interface to the ICAO API Data Service that provides the data in FPAssistant aviation type objects
Inherited Members
Namespace: FpAssistantCore.Icao.ApiDataService
Assembly: FpAssistantCoreScl.dll
Syntax
public class IcaoApiDataService
Remarks
Important: To use the ICAO API Data Service you MUST obtain an API KEY direct from ICAO
Constructors
View SourceIcaoApiDataService(Guid)
Constructor
Declaration
public IcaoApiDataService(Guid apiKeyFromIcao)
Parameters
Type | Name | Description |
---|---|---|
Guid | apiKeyFromIcao | Your API KEY obtained from ICAO to use the service |
Properties
View SourceApiKey
Your API KEY obtained from ICAO to use the service
Declaration
public Guid ApiKey { set; }
Property Value
Type | Description |
---|---|
Guid |
HttpStatusCode
The status code of the web API call
Declaration
public HttpStatusCode HttpStatusCode { get; }
Property Value
Type | Description |
---|---|
HttpStatusCode |
Message
Information message: Contains the error message back from the web API and prior to the call the value of the URL being called
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
string |
Remarks
If message is 'Forbidden' then thus implies your ICAO API key is no longer valid or incorrect
Methods
View SourceAircraftTypeDesignators(string)
Aircraft Type Designators
Declaration
public List<AircraftTypeDesignators> AircraftTypeDesignators(string manufacturer)
Parameters
Type | Name | Description |
---|---|---|
string | manufacturer | Code of the manufacturer as per ICAO DOC 8643 |
Returns
Type | Description |
---|---|
List<AircraftTypeDesignators> | List of AircraftTypeDesignators |
AirportCodesDoc7910(string)
ICAO Airport Location Indicators (DOC 7910)
Declaration
public List<AirportCodesDoc7910> AirportCodesDoc7910(string airports)
Parameters
Type | Name | Description |
---|---|---|
string | airports | Single ICAO 4-letter Aerodrome Code (DOC7910), or comma separated list of a maximum of 10 such codes |
Returns
Type | Description |
---|---|
List<AirportCodesDoc7910> | List of AirportCodesDoc7910 |