Skip to content
Ahmad Ammar

5. Access: what you can reach on foot

Form matters because of what it lets people do. The test used here is the one behind the idea of the 15-minute city: how many kinds of everyday place can you reach within a quarter of an hour’s walk?

5.1 The 15-minute question

Can you reach daily needs on foot? Take the centre of each study area, find all street nodes within 15 minutes' walk (1,200 m at 80 m a minute) along the network with Dijkstra's algorithm, build the isochrone (the area reachable), and count the everyday places inside it by kind. The walking distance is along streets, not as the crow flies, so a circuitous layout reaches less.

In [9]
KINDS = {
    "food shop": lambda r: r.get("shop") in ("supermarket", "convenience", "greengrocer", "bakery", "butcher", "general"),
    "school": lambda r: r.get("amenity") in ("school", "kindergarten"),
    "health": lambda r: r.get("amenity") in ("pharmacy", "doctors", "clinic", "hospital", "dentist"),
    "food and drink": lambda r: r.get("amenity") in ("restaurant", "cafe", "fast_food", "pub"),
    "park or play": lambda r: r.get("leisure") in ("park", "playground"),
    "transit stop": lambda r: r.get("highway") == "bus_stop" or r.get("public_transport") == "platform" or r.get("railway") in ("station", "tram_stop"),
    "worship": lambda r: r.get("amenity") == "place_of_worship",
}
access = {}
for name, (G, F) in data.items():
    Gu = ox.convert.to_undirected(G)
    xs = np.array([d["x"] for _, d in Gu.nodes(data=True)]); ys = np.array([d["y"] for _, d in Gu.nodes(data=True)])
    centre = ox.distance.nearest_nodes(Gu, xs.mean(), ys.mean())
    reach = nx.single_source_dijkstra_path_length(Gu, centre, cutoff=1200, weight="length")
    pts = gpd.GeoSeries(gpd.points_from_xy([Gu.nodes[n]["x"] for n in reach], [Gu.nodes[n]["y"] for n in reach]), crs=F.crs)
    iso = pts.union_all().convex_hull.buffer(50)
    P = F[F.representative_point().within(iso)]
    rec = {k: int(sum(bool(f(r)) for r in P.to_dict("records"))) for k, f in KINDS.items()}
    rec["isochrone km²"] = iso.area / 1e6
    rec["kinds present (of 7)"] = sum(rec[k] > 0 for k in KINDS)
    access[name] = rec
access = pd.DataFrame(access).T
print(access.round(2).to_string())
Out [9]
food shop  school  health  food and drink  park or play  transit stop  worship  isochrone km²  kinds present (of 7)
Belfast centre             41.0     3.0    11.0           234.0          11.0          85.0     19.0           2.51                   7.0
Barcelona Eixample        203.0    29.0   119.0           946.0          23.0         178.0     17.0           2.80                   7.0
Lahore Walled City          1.0     8.0     5.0            11.0          29.0           1.0    110.0           2.59                   7.0
Craigavon (Brownlow)        5.0     0.0     0.0             8.0           0.0          10.0      2.0           1.47                   4.0

From the centre of each area, the reachable area in 15 minutes is about 2.5 to 2.8 km² in the three older places but only 1.5 km² in Craigavon, because its routes are indirect. Barcelona's isochrone holds 203 food shops, 119 health places and 946 places to eat or drink: everyday needs on every block. Central Belfast has all seven kinds too. Craigavon's centre reaches only four of the seven kinds, with no school, health place or park mapped within the walk. Lahore reaches all seven, with 110 places of worship, but only one food shop, which is implausible for one of the busiest bazaars in Pakistan and again reflects mapping, not reality. Counts are only as good as the tags: check a few against what you know.