Git Product home page Git Product logo

nodejs-jakarta-api's Introduction

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

nodejs-jakarta-api's People

Contributors

irfan-maulana-tkp avatar mazipan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.