Transport · Indonesia

How far is the nearest airport?

Indonesia divided into nearest-airport cells on the sphere, shaded by distance, with the same map for airstrips and Pelni ports.

A Voronoi diagram carves a map into one cell per site, each cell being the ground that is closer to its site than to any other. Drawn for airports, it answers a practical question from any point in the archipelago: which one would you head for, and how far is it?

The map starts with the 54 airports that had scheduled domestic flights in the OpenFlights snapshot used in the network post. Switch to all 145 airports and airstrips OpenFlights lists for Indonesia, or to the 74 ports that Pelni’s passenger ships call at. Hover anywhere for the nearest site and the distance to it.

Fig. 01 · Which airport is nearest, from anywhere in Indonesia: Voronoi cells on the sphere, shaded by distance
Nearest
02550100150200300+ km

What the cells show

Colour is distance to the nearest site, so each cell is pale around its airport and darkens towards its edges. The cells over the sea are drawn faintly: a boat halfway between Sulawesi and Kalimantan still has a nearest airport, but the sea is not where the question is usually asked.

The big dark cells are the interiors: central Kalimantan, the Sumatran highlands away from the coastal cities, and the Papuan interior between the coastal airports. Switching to airstrips fills Papua with cells, because that is where most of the strips are; it does much less for Kalimantan.

Villages, not area

Area is a poor measure of access because most Indonesians live along a few coasts. The second chart uses the 77,468 village centres from the village post instead and asks what share of them fall within a given distance.

Half of all villages are within 87 km of an airport with scheduled flights, and 57% are within 100 km. By island group the medians run from 59 km in Bali and Nusa Tenggara to 144 km in Sumatra, whose villages spread far from its few listed airports. Papua’s median of 81 km is lower than Sumatra’s because its villages sit near the towns that have the airports. Counting every airstrip halves the national median to 48 km. Pelni ports are the furthest away for most villages, with a median of 121 km, but the closest for Bali and Nusa Tenggara at 41 km.

Fig. 02 · Share of villages within a given distance of the nearest site, by island group (GADM 4.1 village centres)

How it is drawn

d3.Delaunay would give a Voronoi diagram in a few lines, but on the flat projected map, and the archipelago spans 47° of longitude. Instead the cells are computed on the sphere: every 2 × 2 pixel block of the map is unprojected to a unit vector, and the nearest site is the one with the largest dot product, which is the same ordering as great-circle distance. For 145 sites and about 140,000 blocks that is 20 million multiplications, done in a few tens of milliseconds into typed arrays. The cell borders are simply where the nearest site changes between neighbouring blocks.

The same arrays give the distance colour, the hover lookup and the land statistics in the caption. Land is found by drawing the coastline onto a hidden canvas at block resolution and reading it back, and each block is weighted by cos² of its latitude to undo Mercator’s area stretch before the shares are summed.

Data

The sites come from OpenFlights’ airports.dat and the network post’s scheduled-flight airports and Pelni port list. The village distance curves are computed from the every-village file, and the result is a 37 KB JSON. The scheduled-flight set is a 2014 snapshot, the last OpenFlights published; airports opened since, such as Kertajati or the Nusantara capital’s, are not in it.