Skip to main content

Interface: ChartService

Defined in: src/sdk/charts/ChartService.ts:33

A service that provides chart data.

Methods

getChartPages()

getChartPages(chartGuid): Promise<ChartPages>

Defined in: src/sdk/charts/ChartService.ts:51

Gets chart pages for a given chart.

Parameters

ParameterTypeDescription
chartGuidstringThe GUID of the chart for which to get pages.

Returns

Promise<ChartPages>

A Promise which is fulfilled with the requested chart pages if they were successfully retrieved, or rejected with a numeric error code if the chart pages could not be retrieved. The error code is of type number and extends ChartServiceErrorCode.


getIndexForAirport()

getIndexForAirport(provider, airportIcao): Promise<ChartIndex<string>>

Defined in: src/sdk/charts/ChartService.ts:42

Gets a chart index for an airport.

Parameters

ParameterTypeDescription
providerstringThe provider from which to get the chart index.
airportIcaoIcaoValueThe ICAO of the airport for which to get the chart index.

Returns

Promise<ChartIndex<string>>

A Promise which is fulfilled with the requested chart index if one was successfully retrieved, or rejected with a numeric error code if the chart index could not be retrieved. The error code is of type number and extends ChartServiceErrorCode.