Giter VIP home page Giter VIP logo

indonesia's Introduction

Indonesia

Territories of Indonesia

NPM Version NPM Downloads

  • 34 Provinces
  • 416 Regencies
  • 98 Cities
  • 514 Regencies and Cities

Installation

npm install --save indonesia

Usage

var indonesia = require('indonesia');

// Get all provinces
indonesia.getProvinces(function(res){
  console.log(res);
});

// Get province by name
indonesia.getProvince('aceh', function(res){
  console.log(res);
});

// Get province by name (include cities and regencies)
indonesia.getProvince('aceh', true, function(res){
  console.log(res);
});

// Search province
indonesia.searchProvince('riau', function(res){
  console.log(res);
});

// Get all cities and regencies
indonesia.getCities(function(res){
  console.log(res);
});

// Get city or regency by name
indonesia.getCity('kota ADMINISTRASI jAkArtA SElataN', function(res){
  console.log(res);
});

// Search city or regency
indonesia.searchCity('kota Bek', function(res){
  console.log(res);
});

To-do

Province

  • Get all provinces
  • Search province
  • Get province by name
  • Get province by name (include cities / regencies)
    • Aceh
    • Bali
    • Banten
    • Bengkulu
    • Gorontalo
    • Jakarta
    • Jambi
    • Jawa Barat
    • Jawa Tengah
    • Jawa Timur
    • Kalimantan Barat
    • Kalimantan Selatan
    • Kalimantan Tengah
    • Kalimantan Timur
    • Kalimantan Utara
    • Kepulauan Bangka Belitung
    • Kepulauan Riau
    • Lampung
    • Maluku
    • Maluku Utara
    • Nusa Tenggara Barat
    • Nusa Tenggara Timur
    • Papua
    • Papua Barat
    • Riau
    • Sulawesi Barat
    • Sulawesi Selatan
    • Sulawesi Tengah
    • Sulawesi Tenggara
    • Sulawesi Utara
    • Sumatera Barat
    • Sumatera Selatan
    • Sumatera Utara
    • Yogyakarta

City / Regency

  • Get all cities / regencies
  • Search city / regency
  • Get city / regency by name

Subdistrict (?)

Village (?)

License

MIT © Wahyu Kristianto

indonesia's People

Contributors

kristories avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eksant abebaehaki

indonesia's Issues

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.