Skip to content

Commit

Permalink
Add scripts; Add MIT and ODBL licenses; Update data;
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardsamuel committed May 31, 2015
1 parent 12be6ef commit 9c9e211
Show file tree
Hide file tree
Showing 16 changed files with 90,100 additions and 88,563 deletions.
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
#Data Provinsi, Kota/Kabupaten, Kecamatan, dan Kelurahan/Desa di Indonesia
# Data Provinsi, Kota/Kabupaten, Kecamatan, dan Kelurahan/Desa di Indonesia
Data ini diambil dari situs [Pemutakhiran MFD dan MBS
Badan Pusat Statistik (http://mfdonline.bps.go.id/)](http://mfdonline.bps.go.id/) pada **16 Juli 2014**.
Badan Pusat Statistik (http://mfdonline.bps.go.id/)](http://mfdonline.bps.go.id/) pada **31 May 2015**.

Pengambilan data dilakukan dengan menggunakan curl ke situs BPS:
# Administrative Subdivisions of Indonesia (Provinces, Regencies/Cities, Disticts, Villages)
The data were taken from [Central Agency on Statistics (BPS) - MFD and MBS Update (http://mfdonline.bps.go.id/)](http://mfdonline.bps.go.id/) on **31 May 2015**.

curl http://mfdonline.bps.go.id/index.php?link=hasil_pencarian --data "pilihcari=desa&kata_kunci=%25" > desa_indonesia.html
The data were `curl`-ed from BPS site:

curl http://mfdonline.bps.go.id/index.php?link=hasil_pencarian --data "pilihcari=desa&kata_kunci=%25" > desa_indonesia.html

### Generate new data

In order to generate new data:

cd scripts
./run.sh

*NOTE*: Please create a MySQL database (named: `indonesia`) before run the script.

### License

The scripts are license under: [MIT](license.md).
The data (CSV and SQL) are under: [ODBL v1.0](odbl-10.md).
The source data is attributed to **Badan Pusat Statistik (BPS) Indonesia**.
Loading

0 comments on commit 9c9e211

Please sign in to comment.