Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update - 04 April 2018 #19

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.vscode
79 changes: 34 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 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 **11 Januari 2018**.
Badan Pusat Statistik (http://mfdonline.bps.go.id/)](http://mfdonline.bps.go.id/) pada **04 April 2018**.

# Administrative Subdivisions of Indonesia (Provinces, Regencies/Cities, Districts, 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 **11th January 2018**.
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 **04 April 2018**.

The data were `curl`-ed from BPS site:

Expand All @@ -18,63 +18,52 @@ with `a`, `i`, `u`, `e` and `o` as the keywords.
| Kode | Provinsi | Kabupaten/Kota | Kecamatan | Desa/Kelurahan |
+------+---------------------------+----------------+-----------+----------------+
| 11 | ACEH | 23 | 289 | 6509 |
| 12 | SUMATERA UTARA | 33 | 448 | 6102 |
| 13 | SUMATERA BARAT | 19 | 179 | 1160 |
| 14 | RIAU | 12 | 169 | 1876 |
| 12 | SUMATERA UTARA | 33 | 449 | 6136 |
| 13 | SUMATERA BARAT | 19 | 179 | 1275 |
| 14 | RIAU | 12 | 169 | 1873 |
| 15 | JAMBI | 11 | 141 | 1562 |
| 16 | SUMATERA SELATAN | 17 | 236 | 3263 |
| 16 | SUMATERA SELATAN | 17 | 237 | 3263 |
| 17 | BENGKULU | 10 | 128 | 1515 |
| 18 | LAMPUNG | 15 | 228 | 2642 |
| 19 | KEPULAUAN BANGKA BELITUNG | 7 | 47 | 366 |
| 21 | KEPULAUAN RIAU | 7 | 70 | 395 |
| 31 | DKI JAKARTA | 6 | 44 | 254 |
| 32 | JAWA BARAT | 27 | 627 | 5832 |
| 33 | JAWA TENGAH | 35 | 573 | 8008 |
| 34 | DI YOGYAKARTA | 5 | 78 | 414 |
| 35 | JAWA TIMUR | 38 | 666 | 7856 |
| 36 | BANTEN | 8 | 155 | 1501 |
| 51 | BALI | 9 | 57 | 653 |
| 52 | NUSA TENGGARA BARAT | 10 | 116 | 1062 |
| 53 | NUSA TENGGARA TIMUR | 22 | 307 | 3202 |
| 61 | KALIMANTAN BARAT | 14 | 174 | 2073 |
| 62 | KALIMANTAN TENGAH | 14 | 136 | 1537 |
| 63 | KALIMANTAN SELATAN | 13 | 152 | 1971 |
| 64 | KALIMANTAN TIMUR | 10 | 103 | 1002 |
| 65 | KALIMANTAN UTARA | 5 | 53 | 466 |
| 71 | SULAWESI UTARA | 15 | 171 | 1790 |
| 72 | SULAWESI TENGAH | 13 | 175 | 1953 |
| 73 | SULAWESI SELATAN | 24 | 307 | 2975 |
| 74 | SULAWESI TENGGARA | 17 | 222 | 2301 |
| 75 | GORONTALO | 6 | 77 | 722 |
| 76 | SULAWESI BARAT | 6 | 69 | 639 |
| 81 | MALUKU | 11 | 118 | 1180 |
| 82 | MALUKU UTARA | 10 | 116 | 1155 |
| 91 | PAPUA BARAT | 13 | 217 | 1730 |
| 94 | PAPUA | 29 | 567 | 4866 |
| 18 | LAMPUNG | 15 | 228 | 2654 |
| 19 | KEPULAUAN BANGKA BELITUNG | 7 | 47 | 391 |
| 21 | KEPULAUAN RIAU | 7 | 70 | 416 |
| 31 | DKI JAKARTA | 6 | 44 | 267 |
| 32 | JAWA BARAT | 27 | 627 | 5963 |
| 33 | JAWA TENGAH | 35 | 573 | 8559 |
| 34 | DI YOGYAKARTA | 5 | 78 | 438 |
| 35 | JAWA TIMUR | 38 | 666 | 8501 |
| 36 | BANTEN | 8 | 155 | 1552 |
| 51 | BALI | 9 | 57 | 716 |
| 52 | NUSA TENGGARA BARAT | 10 | 117 | 1144 |
| 53 | NUSA TENGGARA TIMUR | 22 | 309 | 3353 |
| 61 | KALIMANTAN BARAT | 14 | 174 | 2137 |
| 62 | KALIMANTAN TENGAH | 14 | 136 | 1577 |
| 63 | KALIMANTAN SELATAN | 13 | 153 | 2008 |
| 64 | KALIMANTAN TIMUR | 10 | 103 | 1038 |
| 65 | KALIMANTAN UTARA | 5 | 53 | 482 |
| 71 | SULAWESI UTARA | 15 | 171 | 1838 |
| 72 | SULAWESI TENGAH | 13 | 175 | 2020 |
| 73 | SULAWESI SELATAN | 24 | 307 | 3049 |
| 74 | SULAWESI TENGGARA | 17 | 222 | 2359 |
| 75 | GORONTALO | 6 | 77 | 734 |
| 76 | SULAWESI BARAT | 6 | 69 | 650 |
| 81 | MALUKU | 11 | 118 | 1238 |
| 82 | MALUKU UTARA | 10 | 116 | 1198 |
| 91 | PAPUA BARAT | 13 | 217 | 1847 |
| 94 | PAPUA | 27 | 559 | 5338 |
+------+---------------------------+----------------+-----------+----------------+
```

*Note*:

The data was provided as-it-is and looks like there are two anomalies:
The data was provided as-it-is and looks like there is one anomalies:

There was entries that not in ASCII format.

```
72 SULAWESI TENGAH 09 KABUPATEN TOJO UNA-UNA 070 TOGEAN 016 TITIRIí POPOLION
94 PAPUA 33 KABUPATEN PUNCAK 042 MAGEÁBUME
```

There are duplicate village id.

```
91 PAPUA BARAT 07 KABUPATEN SORONG 182 WEMAK 005 KAMLIN
91 PAPUA BARAT 07 KABUPATEN SORONG 182 WEMAK 005 KWARI

91 PAPUA BARAT 09 KABUPATEN TAMBRAUW 070 KEBAR 015 ANARUM
91 PAPUA BARAT 09 KABUPATEN TAMBRAUW 070 KEBAR 015 JAMBUANI
```

The above statistics was generated by MySQL version and uses `INSERT IGNORE` statements.
This will skip the duplicate items.

Expand Down
59 changes: 37 additions & 22 deletions csv/districts.csv
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
1114020,1114,KEJURUAN MUDA
1114021,1114,TENGGULUN
1114030,1114,RANTAU
1114040,1114,KOTA KUALA SIMPANG
1114040,1114,KOTA KUALASIMPANG
1114050,1114,SERUWAY
1114060,1114,BENDAHARA
1114061,1114,BANDA MULIA
Expand Down Expand Up @@ -423,6 +423,7 @@
1209011,1209,PEMATANG SILIMAHUTA
1209020,1209,PURBA
1209021,1209,HARANGGAOL HORISON
1209030,1209,DOLOK PARDAMEAN
1209040,1209,SIDAMANIK
1209041,1209,PEMATANG SIDAMANIK
1209050,1209,GIRSANG SIPANGAN BOLON
Expand Down Expand Up @@ -580,9 +581,9 @@
1216020,1216,KERAJAAN
1216021,1216,TINADA
1216022,1216,SIEMPAT RUBE
1217010,1217,SIANJUR MULA MULA
1217010,1217,SIANJUR MULAMULA
1217020,1217,HARIAN
1217030,1217,SITIO-TIO
1217030,1217,SITIOTIO
1217040,1217,ONAN RUNGGU
1217050,1217,NAINGGOLAN
1217060,1217,PALIPI
Expand Down Expand Up @@ -782,7 +783,7 @@
1304090,1304,KUPITAN
1304100,1304,KOTO TUJUH
1304110,1304,SUMPUR KUDUS
1305010,1305,SEPULUH KOTO
1305010,1305,X KOTO
1305020,1305,BATIPUH
1305021,1305,BATIPUH SELATAN
1305030,1305,PARIANGAN
Expand Down Expand Up @@ -1100,7 +1101,7 @@
1501091,1501,GUNUNG TUJUH
1501092,1501,KAYU ARO BARAT
1502010,1502,JANGKAT
1502011,1502,SUNGAI TENANG
1502011,1502,JANGKAT TIMUR
1502020,1502,MUARA SIAU
1502021,1502,LEMBAH MASURAI
1502022,1502,TIANG PUMPUNG
Expand Down Expand Up @@ -1319,6 +1320,7 @@
1606022,1606,PLAKAT TINGGI
1606023,1606,LAWANG WETAN
1606030,1606,SUNGAI KERUH
1606031,1606,JIRAK JAYA
1606040,1606,SEKAYU
1606041,1606,LAIS
1606090,1606,SUNGAI LILIN
Expand Down Expand Up @@ -1789,8 +1791,8 @@
1813070,1813,KRUI SELATAN
1813080,1813,PESISIR SELATAN
1813090,1813,NGAMBUR
1813100,1813,BENGKUNAT
1813110,1813,BENGKUNAT BELIMBING
1813100,1813,NGARAS
1813110,1813,BANGKUNAT
1871010,1871,TELUK BETUNG BARAT
1871011,1871,TELUKBETUNG TIMUR
1871020,1871,TELUK BETUNG SELATAN
Expand Down Expand Up @@ -2079,7 +2081,7 @@
3203090,3203,SUKANAGARA
3203100,3203,PAGELARAN
3203110,3203,CAMPAKA
3203111,3203,CAMPAKA MULYA
3203111,3203,CAMPAKAMULYA
3203120,3203,CIBEBER
3203130,3203,WARUNGKONDANG
3203131,3203,GEKBRONG
Expand Down Expand Up @@ -3072,7 +3074,7 @@
3325100,3325,TULIS
3325101,3325,KANDEMAN
3325110,3325,BATANG
3325120,3325,WARUNG ASEM
3325120,3325,WARUNGASEM
3326010,3326,KANDANGSERANG
3326020,3326,PANINGGARAN
3326030,3326,LEBAKBARANG
Expand Down Expand Up @@ -4174,6 +4176,7 @@
5203090,5203,AIKMEL
5203091,5203,WANASABA
5203092,5203,SEMBALUN
5203093,5203,LENEK
5203100,5203,SAMBELIA
5204020,5204,LUNYUK
5204021,5204,ORONG TELU
Expand Down Expand Up @@ -4499,7 +4502,9 @@
5315032,5315,LEMBOR SELATAN
5315040,5315,KUWUS
5315041,5315,NDOSO
5315042,5315,KUWUS BARAT
5315050,5315,MACANG PACAR
5315051,5315,PACAR
5316010,5316,KATIKUTANA
5316011,5316,KATIKUTANA SELATAN
5316020,5316,UMBU RATU NGGAY BARAT
Expand Down Expand Up @@ -4870,7 +4875,7 @@
6301020,6301,TAKISUNG
6301030,6301,KURAU
6301031,6301,BUMI MAKMUR
6301040,6301,BATI - BATI
6301040,6301,BATI-BATI
6301050,6301,TAMBANG ULANG
6301060,6301,PELAIHARI
6301061,6301,BAJUIN
Expand Down Expand Up @@ -4917,6 +4922,7 @@
6303110,6303,MATARAMAN
6303120,6303,SIMPANG EMPAT
6303121,6303,TELAGA BAUNTUNG
6303122,6303,CINTAPURI DARUSSALAM
6304010,6304,TABUNGANEN
6304020,6304,TAMBAN
6304030,6304,MEKAR SARI
Expand Down Expand Up @@ -5433,7 +5439,7 @@
7206041,7206,LAMPASIO
7206050,7206,GALANG
7206060,7206,TOLITOLI UTARA
7206061,7206,DAKO PAMEAN
7206061,7206,DAKO PEMEAN
7207010,7207,LAKEA
7207011,7207,BIAU
7207012,7207,KARAMAT
Expand Down Expand Up @@ -5765,7 +5771,7 @@
7322120,7322,MASAMBA
7322121,7322,MAPPEDECENG
7322122,7322,RAMPI
7322130,7322,LIMBONG
7322130,7322,RONGKONG
7322131,7322,SEKO
7325010,7325,BURAU
7325020,7325,WOTU
Expand Down Expand Up @@ -5829,7 +5835,7 @@
7373041,7373,WARA BARAT
7401050,7401,LASALIMU
7401051,7401,LASALIMU SELATAN
7401052,7401,SIONTAPINA
7401052,7401,SIOTAPINA
7401060,7401,PASAR WAJO
7401061,7401,WOLOWA
7401062,7401,WABULA
Expand Down Expand Up @@ -6171,7 +6177,7 @@
7604011,7604,TAPALANG BARAT
7604020,7604,MAMUJU
7604022,7604,SIMBORO
7604023,7604,BALABALAKANG
7604023,7604,KEPULAUAN BALA BALAKANG
7604030,7604,KALUKKU
7604031,7604,PAPALANG
7604032,7604,SAMPAGA
Expand Down Expand Up @@ -6273,7 +6279,7 @@
8107020,8107,SERAM TIMUR
8107021,8107,TUTUK TOLU
8107022,8107,KILMURY
8107023,8107,LIAN VITU
8107023,8107,SIRITAUN WIDA TIMUR
8107024,8107,KIAN DARAT
8107030,8107,WERINAMA
8107031,8107,SIWALALAT
Expand Down Expand Up @@ -6301,7 +6307,7 @@
8109020,8109,LEKSULA
8109021,8109,FENA FAFAN
8109030,8109,NAMROLE
8109040,8109,WAISAMA
8109040,8109,WAESAMA
8109050,8109,AMBALAU
8171010,8171,NUSANIWE
8171020,8171,SIRIMAU
Expand Down Expand Up @@ -6593,7 +6599,7 @@
9109090,9109,AMBERBAKEN
9109091,9109,MPUR
9109092,9109,AMBERBAKEN BARAT
9109100,9109,MUBARNI / ARFU
9109100,9109,MUBRANI / ARFU
9109110,9109,MORAID
9109111,9109,SELEMKAI
9110010,9110,AITINYO BARAT/ATHABU
Expand Down Expand Up @@ -6702,8 +6708,9 @@
9402226,9402,BUGI
9402227,9402,BPIRI
9402228,9402,KORAGI
9402611,9402,ITLAY HASIGE
9402611,9402,WESAPUT
9402612,9402,SIEPKOSI
9402613,9402,ITLAY HISAGE
9402614,9402,POPUGOBA
9403080,9403,KAUREH
9403081,9403,AIRU
Expand Down Expand Up @@ -6781,8 +6788,10 @@
9410034,9410,WEGE MUKA
9410035,9410,WEGEE BINO
9410036,9410,YAGAI
9410037,9410,DEIYAI MIYO
9410040,9410,BIBIDA
9410041,9410,DUMADAMA
9410042,9410,DOGOMO
9410070,9410,ARADIDE
9410071,9410,EKADIDE
9410072,9410,AWEIDA
Expand All @@ -6794,6 +6803,8 @@
9410083,9410,NAKAMA
9410084,9410,TELUK DEYA
9410090,9410,BOGOBAIDA
9410091,9410,YOUTADI
9410092,9410,BAYA BIRU
9411040,9411,FAWI
9411041,9411,DAGAI
9411042,9411,KIYAGE
Expand Down Expand Up @@ -7120,6 +7131,7 @@
9430012,9430,KOLAWA
9430013,9430,GELOK BEAM
9430014,9430,AWINA
9430015,9430,KULLY LANNY
9430020,9430,PIRIME
9430021,9430,BUGUK GONA
9430022,9430,MILIMBO
Expand All @@ -7131,12 +7143,13 @@
9430033,9430,NINAME
9430034,9430,YIGINUA
9430035,9430,TIOM OLLO
9430036,9430,YUGUNWI
9430036,9430,YUGUNGWI
9430037,9430,LANNYNA
9430040,9430,BALINGGA
9430041,9430,BALINGGA BARAT
9430042,9430,BRUWA
9430043,9430,AYUMNATI
9430044,9430,GOA BALIM
9430050,9430,KUYAWAGE
9430051,9430,WANO BARAT
9430060,9430,MALAGAINERI
Expand All @@ -7162,7 +7175,7 @@
9432030,9432,ABENAHO
9432040,9432,ELELIM
9432050,9432,BENAWA
9433010,9433,AGADUGUME
9433010,9433,AGANDUGUME
9433011,9433,LAMBEWI
9433012,9433,ONERI
9433020,9433,GOME
Expand All @@ -7181,11 +7194,11 @@
9433051,9433,KEMBRU
9433052,9433,BINA
9433060,9433,WANGBE
9433061,9433,OGAMANIM
9433061,9433,OGAMANIN
9433070,9433,BEOGA
9433071,9433,BEOGA BARAT
9433072,9433,BEOGA TIMUR
9433080,9433,DOUFO
9433080,9433,DOUVO
9433081,9433,DERVOS
9434010,9434,SUKIKAI SELATAN
9434020,9434,PIYAIYE
Expand All @@ -7199,8 +7212,10 @@
9434100,9434,KAMU UTARA
9435010,9435,HOMEYO
9435020,9435,SUGAPA
9435021,9435,UGIMBA
9435030,9435,HITADIPA
9435040,9435,AGISIGA
9435041,9435,TOMOSIGA
9435050,9435,BIANDOGA
9435060,9435,WANDAI
9436010,9436,KAPIRAYA
Expand Down
4 changes: 2 additions & 2 deletions csv/regencies.csv
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
6213,62,KABUPATEN MURUNG RAYA
6271,62,KOTA PALANGKA RAYA
6301,63,KABUPATEN TANAH LAUT
6302,63,KABUPATEN KOTA BARU
6302,63,KABUPATEN KOTABARU
6303,63,KABUPATEN BANJAR
6304,63,KABUPATEN BARITO KUALA
6305,63,KABUPATEN TAPIN
Expand Down Expand Up @@ -447,7 +447,7 @@
7602,76,KABUPATEN POLEWALI MANDAR
7603,76,KABUPATEN MAMASA
7604,76,KABUPATEN MAMUJU
7605,76,KABUPATEN MAMUJU UTARA
7605,76,KABUPATEN PASANGKAYU
7606,76,KABUPATEN MAMUJU TENGAH
8101,81,KABUPATEN MALUKU TENGGARA BARAT
8102,81,KABUPATEN MALUKU TENGGARA
Expand Down
Loading