Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

mazipan/nodejs-jakarta-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-jakarta-api

Node.js wrapper for JakGo API (api.jakarta.go.id) with Memory Cache.

API Jakgo merupakan sebuah layanan yang menyediakan informasi data yang ada di lingkup Pemerintah Provinsi DKI Jakarta. Data ini mencakup semua bidang yang ada di Provinsi DKI Jakarta seperti Kesehatan, Kebersihan, Transportasi, dll.

Get your token

How to install

$ yarn add nodejs-jakarta-api node-fetch memory-cache
# OR
$ npm install nodejs-jakarta-api node-fetch memory-cache

How to use?

Create instance

import JakGoAPI from 'nodejs-jakarta-api';

const JakGoAPI = new JakGoAPI({ token: 'YOUR_TOKEN_HERE' });

Create request

const response = await JakGoAPI.getKota();

Available Methods

Method Name Parameter Description
getKota - Get Kota
getKelurahan - Get Kelurahan
getKecamatan - Get Kecamatan
getRW - Get RW
getTPS - Get Tempat Pembuangan Sampah
getRSU - Get Rumah Sakit Umum
getRSK - Get Rumah Sakit Khusus
getPuskesmas - Get Puskesmas
getCCTV id: string Get CCTV
getPosPemadam - Get Pos Pemadam Kebakaran
getPetugasPemadam - Get Petugas Pemadam Kebakaran
getAmbulance - Get Ambulance
getPetugasDinkes - Get Petugas Dinas Kesehatan
getPetugasSatpolPP - Get Petugas Satpol PP
getPosPolda - Get Pos Polda
getPetugasDishub - Get Petugas Dishub

Credits


Copyright © 2020 by Irfan Maulana

About

Node.js wrapper for JakGo API (api.jakarta.go.id)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •