Population · Indonesia

Every village in Indonesia

Mapping 77,468 desa and kelurahan, with village sizes compared across the islands.

I’ve plotted every village in GADM’s Indonesia boundary file: 77,468 desa and kelurahan, each shown as a dot at its centre. The file uses the older province boundaries and contains fewer villages than the roughly 83,000 in the ministry’s register.

At this scale, I used canvas to draw the dots and a quadtree to find the village under the pointer. Zoom in and hover to see its name.

Fig. 01 · Every desa and kelurahan in Indonesia, one dot each (GADM 4.1)
Colour
0.521050200500+ km²
Desa (rural village)Kelurahan (urban ward)

Village sizes

Colour shows land area. Java’s median village is 3.4 km², compared with 31 km² in Kalimantan. The dots are closely packed across Java and much further apart in Papua. Village area often reflects settlement density, though this file contains no population data.

Switch to kind to highlight the 5,163 kelurahan, concentrated in cities and district capitals. GADM records 262 in Jakarta, alongside six desa.

The histograms compare village areas by island group.

Fig. 02 · How big a village is, by island group: share of villages per area band, log scale
Areas from GADM’s simplified outlines, so the smallest urban wards are approximate. Java’s villages are the small end; Papua’s the large.

Data limits

GADM 4.1 predates the 2022 Papua split and does not match the current village register. Five water-body features have been excluded. Names joined together in the source file are split at capital letters, which occasionally produces odd results.

Areas come from simplified boundaries, so small urban wards are approximate. A centroid can also fall outside its village: dots for groups of islands sometimes appear at sea.

How it is drawn

The map uses two canvases, one for land and one for dots. Village positions are projected once with d3.geoMercator and stored in typed arrays. d3.zoom scales and shifts those positions when you pan or zoom.

Dots outside the view are skipped. The rest are grouped by colour and drawn together, reducing thousands of draw calls to about a dozen. Very small dots are drawn as squares.

For hover, the pointer is converted back to the original coordinates and d3.quadtree.find returns the nearest village. This avoids checking every dot on each pointer movement. Pinch, ctrl+wheel or the buttons zoom; ordinary scrolling moves the page.

Data

GADM 4.1, level 4, simplified JSON. Centres and areas are computed from the boundaries with d3-geo and written to a 3.4 MB file, under 1 MB compressed. Names are stored as indexed lists. GADM is free for non-commercial use with attribution.