← All projects
Agentic CodingUrban AnalyticsNetwork AnalysisPython

Livability Analysis of Tallinn Using Agentic Coding

A network-distance livability score for 7,842 apartment buildings in Tallinn, Estonia, combining real walkable access to transit, groceries, gyms, and green/blue space into a single, validated score β€” with the entire pipeline built by directing an AI coding agent end-to-end.

Completed August 2026

The Question

  • Which apartment buildings in Tallinn are genuinely livable β€” based on real walkable access to transit, groceries, gyms, and green or blue space, not straight-line distance on a map?
  • Could a full spatial-data pipeline β€” ingestion, network routing, scoring, validation, and an interactive map β€” be built and shipped by one person directing an AI coding agent, instead of a team hand-writing every line?
  • Full data sources and scoring methodology: methodology summary (PDF) β†’

Approach: Agentic Coding

  • The entire pipeline β€” four analysis notebooks plus a report generator β€” was built by directing Claude Code end-to-end
  • Reading Estonia’s open-data registries, tracing a dead GTFS feed URL to its replacement, writing the network-routing and scoring logic, and generating the validation charts and PDF report
  • My role: steer scope, choose the scoring methodology, review the agent’s code and results at each stage, and decide what to cut
  • Dropped a data source (building energy class) once validation showed it wasn’t reliable enough to score on, rather than writing the geospatial code by hand
  • Notebooks and the methodology write-up: code repository β†’

Validation

  • Manually reviewed the highest- and lowest-scoring buildings, catching a real bug: ~2% of buildings were scoring as if they had no nearby amenities at all, from a gap in the street network β€” fixed, every building now routes correctly
  • Checked district-level averages against local knowledge: well-connected LasnamΓ€e and PΓ΅hja-Tallinna score highest, quieter Pirita lowest
  • Ran a 300-iteration Monte Carlo sensitivity test on the scoring assumptions: small, reasonable changes barely move results (86% of buildings keep their category); large, unrealistic changes move them a lot, as expected

Graphs

Interactive Map