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
Parameter | Type | Description |
---|---|---|
chartGuid | string | The 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
Parameter | Type | Description |
---|---|---|
provider | string | The provider from which to get the chart index. |
airportIcao | IcaoValue | The 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.