Tutorials7 min read

AI Agents in Urban Planning: Data, Models, Limits

What cities actually publish about AI in planning, the open data and simulators behind it, where LLM agents fit, and a working NYC zoning query in Python.

By AI Agents DirectoryLast checked
A white humanoid robot hand held out palm up

Most of what gets called “AI in urban planning” is older and narrower than the label suggests. Cities run statistical land-use and travel models, computer vision that counts or detects things in street imagery, and, more recently, language models that summarise documents for staff. Large language model agents that query data on a planner’s behalf are mostly prototypes. This guide sticks to what cities and agencies publish on their own pages, the open data and simulators behind planning work, and a small working query against New York City’s zoning data. For traffic signals specifically, see our separate post on AI traffic management in Singapore and Barcelona.

What cities say they actually run

The best evidence comes from public algorithm registers, where a city lists each system and its status. Amsterdam publishes one, and Helsinki runs an AI Register describing the AI systems the city uses and how each is supervised.

Amsterdam’s register (in Dutch) is useful because every entry carries a status. A few relevant to the physical city:

Entry in Amsterdam’s registerWhat it doesStatus listed
Objectherkenning Openbare RuimteObject recognition to help enforcement around fragile bridges and quay walls where heavy objects are placedIn use
Langzaam Verkeer MonitoringsysteemTurns video into counts of slow traffic as decision support for managing public space and policyIn use
Lokaliseren van lantaarnpalenKeeps the register of street lamps current for maintenanceIn use
STAIR AssistRoutes staff questions to the right procedure; the register says it makes no decisions about residentsIn development
Public EyePedestrian counting to manage crowdingOut of use

Source: Amsterdam algorithm register.

The register also lists ChatAmsterdam, a generative AI assistant for staff, and a tool that summarises existing legal advice on objections for the city’s lawyers. Both are marked in use. None of these entries is a planning agent that proposes or approves land-use changes.

Summarising public comments: the clearest LLM use

Planning runs on consultation, and reading thousands of responses is slow. The UK government built a tool called Consult, part of its “Humphrey” suite, for this job. According to the DSIT press release from 14 May 2025, its first live use was a Scottish Government consultation on regulating non-surgical cosmetic procedures. The topic was not planning, but the workflow carries over directly.

How it worked, as the government describes it:

  • Consult proposed themes from more than 2,000 responses across six open questions.
  • Scottish Government experts checked and refined those themes.
  • The tool then assigned each response to themes.
  • Because it was the first live run, officials also reviewed every response by hand, and the release says tool and humans agreed most of the time.

The release also says Consult was still in trial, with more evaluation of accuracy and efficiency planned before rollout decisions. That is the honest status for this whole category: promising, human-checked, not yet routine.

Open data planners work with

Any agent or model is only as good as the data it can reach. Three free sources come up again and again.

NYC PLUTO. New York’s Department of City Planning publishes PLUTO, tax-lot data with more than seventy fields, on NYC Open Data. Each lot has a zoning district (zonedist1), a community district (cd), residential units (unitsres) and maximum floor area ratios. Zoning districts start with R, C or M for residence, commercial or manufacturing, and a higher number after the letter generally means denser use is allowed.

OpenStreetMap via Overpass. The Overpass API is a read-only query service over OpenStreetMap data. The wiki says staying below 10,000 queries and 1 GB of downloads a day is fine for the public instance, asks apps to send an identifying User-Agent, and points commercial users to self-hosted or paid servers.

US Census Bureau. The Census Data API gives developers access to the Bureau’s population and economic datasets. Request a key before relying on it.

Simulation: where most planning “AI” lives

Long-range planning depends on simulation models, and several are open source and run by public agencies.

ToolWhat it modelsWho uses it (per its maintainers)
UrbanSimStatistical models of real estate development, household and job location, and demographics under policy scenarios (Python, BSD-3)Public agencies, consultancies and researchers in dozens of cities
ActivitySimActivity-based travel demand (Python, BSD-3)Led by a consortium of metropolitan planning organisations and other transport agencies
MATSimAgent-based transport simulation of individual travellers over a full day, second by secondThe Swiss Federal Railways has run a Switzerland-wide model since around 2018

“Agent” here means a simulated person or household, not an LLM. These models are deployed tools at real agencies. LLM agents could help write scenario configs or explain outputs, but the model itself is statistical code that needs calibration against local data.

A working example: zoning by community district

This script asks PLUTO how many lots in a community district fall into each zoning district and how many homes they hold. It uses the older /resource/ endpoint with SoQL $select, $where and $group parameters.

import json
import urllib.parse
import urllib.request

# MapPLUTO tax-lot data on NYC Open Data (Socrata).
URL = "https://data.cityofnewyork.us/resource/64uk-42ks.json"

def lots_by_zoning(community_district: str, limit: int = 10):
    params = {
        "$select": "zonedist1, count(*) AS lots, sum(unitsres) AS homes",
        "$where": f"cd = '{community_district}'",
        "$group": "zonedist1",
        "$order": "lots DESC",
        "$limit": str(limit),
    }
    req = urllib.request.Request(
        URL + "?" + urllib.parse.urlencode(params),
        headers={"User-Agent": "zoning-demo/0.1"},
    )
    with urllib.request.urlopen(req, timeout=30) as resp:
        return json.load(resp)

if __name__ == "__main__":
    # 302: first digit is the borough code (3 = Brooklyn), then district 02
    for row in lots_by_zoning("302"):
        print(f"{row.get('zonedist1', '?'):<10} lots={row['lots']:>5}  homes={row.get('homes', '0')}")

Run on 8 November 2026, the first lines of output were:

R6B        lots= 4208  homes=17134
R6         lots= 1083  homes=13452
R7A        lots=  604  homes=4626
R6A        lots=  373  homes=2565
R7-1       lots=  307  homes=6866

Notes from testing: the anonymous request worked on the /resource/ endpoint. Socrata’s docs say the newer SODA3 endpoint, /api/v3/views/<id>/query.json, needs a user login or an application token, and requests without a token are throttled by IP address from a shared pool, with HTTP 429 when you hit the limit. Register a token for anything beyond a demo. zonedist1 is only the district covering the largest share of a lot, so split lots are simplified.

For the OpenStreetMap side, this Overpass query counts libraries mapped inside Brooklyn’s boundary:

[out:json][timeout:60];
area["name"="Brooklyn"]["boundary"="administrative"]->.b;
nwr["amenity"="library"](area.b);
out count;

Where an LLM agent fits

Wrap lots_by_zoning as a tool and a model such as one built with LlamaIndex can answer “which zoning districts dominate Brooklyn CD 2?” by calling it, rather than guessing. Our post on connecting agents to APIs covers tool schemas, retries and rate limits. Sensible boundaries:

  • Let the agent fetch and summarise. Pulling PLUTO rows, counting OSM features or clustering comments into themes are tasks a person can check.
  • Show the query. Print the SoQL or Overpass query next to every answer so staff can rerun it.
  • Keep decisions with people. Zoning changes, approvals and enforcement go through legal processes. Amsterdam’s register is careful to say when a system makes no decisions about residents; the same line belongs in any planning tool.
  • Check against source data. Consult’s first run had humans review every response. Do the same on your first batch.

For neighbouring topics, see our guide to AI in environmental monitoring and the tools in data and research.

What the earlier version claimed

The previous version of this post quoted a “Stanford HAI” researcher promising large efficiency gains and described agents that autonomously rebalance energy grids and process permits. No primary source supports either, so both are gone. What remains is smaller: registers listing narrow systems, one human-checked LLM summariser in trial, mature open-source simulators, and open data you can query today.

#Urban planning#Smart cities#Open data#Simulation#AI agents
AI

Written by AI Agents Directory

Editorial team

Facts in this guide are checked against official documentation and repositories, which are linked in the article.