UNPKG

bmkg-wrapper

Version:

Sebuah API wrapper untuk mempermudah akses API data terbuka Badan Meteorologi, Klimatologi, dan Geofisika.

17 lines (16 loc) 669 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ENDPOINTS = exports.BASE_URL = void 0; exports.BASE_URL = { GEMPA: 'https://data.bmkg.go.id/DataMKG/TEWS/', CUACA: 'https://api.bmkg.go.id/publik/prakiraan-cuaca', CSV: 'https://raw.githubusercontent.com/kodewilayah/permendagri-72-2019/main/dist/base.csv', }; exports.ENDPOINTS = { GEMPA: { AUTO_GEMPA: `${exports.BASE_URL.GEMPA}autogempa.json`, GEMPA_TERKINI: `${exports.BASE_URL.GEMPA}gempaterkini.json`, GEMPA_DIRASAKAN: `${exports.BASE_URL.GEMPA}gempadirasakan.json`, }, CUACA: `${exports.BASE_URL.CUACA}?adm4=`, };