Skip to content

@appleparan/kma-mcp-server


@appleparan/kma-mcp-server / clients/gts / GTSClient

Class: GTSClient

Defined in: src/clients/gts.ts:35

Extends

Constructors

Constructor

new GTSClient(config): GTSClient

Defined in: src/clients/gts.ts:36

Parameters

config

KMAClientConfig

Returns

GTSClient

Overrides

BaseKMAClient.constructor

Properties

authKey

protected authKey: string

Defined in: src/clients/base.ts:43

Inherited from

BaseKMAClient.authKey


client

protected client: AxiosInstance

Defined in: src/clients/base.ts:42

Inherited from

BaseKMAClient.client

Methods

formatDateTime()

protected formatDateTime(date, includeTime): string

Defined in: src/clients/base.ts:96

Format datetime to KMA API format (YYYYMMDDHHmm or YYYYMMDD)

Parameters

date

Date

includeTime

boolean = true

Returns

string

Inherited from

BaseKMAClient.formatDateTime


getAircraftReports()

getAircraftReports(tm): Promise\<SynopObservation[]>

Defined in: src/clients/gts.ts:74

Get aircraft reports (AIREP)

Parameters

tm

string

Observation time in YYYYMMDDHHmm format

Returns

Promise\<SynopObservation[]>


getBuoyObservations()

getBuoyObservations(tm): Promise\<SynopObservation[]>

Defined in: src/clients/gts.ts:64

Get buoy observations from GTS network

Parameters

tm

string

Observation time in YYYYMMDDHHmm format

Returns

Promise\<SynopObservation[]>


getShipObservations()

getShipObservations(tm): Promise\<ShipObservation[]>

Defined in: src/clients/gts.ts:54

Get ship observations

Parameters

tm

string

Observation time in YYYYMMDDHHmm format

Returns

Promise\<ShipObservation[]>


getSurfaceChart()

getSurfaceChart(tm): Promise\<ChartData[]>

Defined in: src/clients/gts.ts:84

Get surface weather chart

Parameters

tm

string

Chart time in YYYYMMDDHHmm format

Returns

Promise\<ChartData[]>


getSynopChart()

getSynopChart(tm): Promise\<ChartData[]>

Defined in: src/clients/gts.ts:94

Get SYNOP chart (observation plot)

Parameters

tm

string

Chart time in YYYYMMDDHHmm format

Returns

Promise\<ChartData[]>


getSynopObservations()

getSynopObservations(tm): Promise\<SynopObservation[]>

Defined in: src/clients/gts.ts:44

Get SYNOP (land station) observations

Parameters

tm

string

Observation time in YYYYMMDDHHmm format

Returns

Promise\<SynopObservation[]>


makeRequest()

protected makeRequest\<T>(endpoint, params): Promise\<T[]>

Defined in: src/clients/base.ts:56

Type Parameters

T

T = unknown

Parameters

endpoint

string

params

Record\<string, unknown>

Returns

Promise\<T[]>

Inherited from

BaseKMAClient.makeRequest