11 Nov 2026 · 4 min read · EN
An industrial census you can navigate
A municipality finishes an industrial census: hundreds of companies surveyed in person, a long questionnaire per company, addresses typed by hand by people walking a district. Then the census goes into a filing cabinet, or a spreadsheet nobody opens.
This project was the other path: publish it. A public site where anyone can search the district’s industry by name, sector or locality, open a company sheet, and see it on a map — plus a backoffice for the census team to correct coordinates and keep records current.
What the data actually looked like
The real constraint of civic data work is that the source is never one tidy dataset:
- The survey lived in an SPSS
.savfile — 300 cases, 503 questions, 52,470 answers. - Company contact data lived in Excel, and a second spreadsheet carried addresses only.
- A classification catalog (sector, activity, industry type) had to be normalised by hand.
- Coordinates did not exist at all: addresses had to be geocoded, then corrected.
So the first half of the project was not web development. It was a set of small, re-runnable loaders: one per entity (companies, addresses, classification, coordinates), each idempotent, each able to run against a fresh database. The join key is the CUIT (Argentina’s tax id), with a normalised-name fallback for the cases where the tax id was missing or mistyped — because in real census data it always is, a few dozen times.
Geocoding got the coordinates close. Then a human pass fixed the ones that landed in the middle of a highway, which is the difference between a map that is technically correct and one a neighbour can use. 288 of the 300 companies ended up on the map.
Choosing a boring stack, on purpose
The draft proposal asked for React, Mapbox and API Platform. I proposed the opposite, and wrote down why:
| Proposed | Shipped | Reason |
|---|---|---|
| React frontend | Twig + HTMX + Bootstrap 5 | No build step, no Node in production, one deployable |
| Mapbox | Leaflet + OpenStreetMap | No API key, no licence cost, no vendor invoice for a public body |
| API Platform | Symfony forms | A monolith with server-rendered forms needs no API layer |
| PHP 7 / Symfony 4–5 | PHP 8.4 / Symfony 7 | Supported version, better typing and performance |
| Docker | Containers, same images in dev and prod | Rootless where the target allows it |
The result is a Symfony 7 monolith: Twig templates, Doctrine, MariaDB 11.4, Nginx and PHP-FPM in containers, Leaflet 1.9 with marker clustering. Server-rendered HTML, so it works on the cheap laptop in a municipal office and needs no npm audit every month.
A data model that anticipates the second municipality
The original schema was hard-wired to one district. Any neighbouring municipality that wanted the system would have meant a fork. So the geography became explicit:
Province → District → Locality → Company
with the active district selected by a single DISTRITO environment variable. Same code, new
municipality, no duplication — and a distrito foreign key that costs nothing today.
What a visitor gets
- Search and filters by name, CUIT, sector, activity and locality.
- Company sheets with address, coordinates and its own map.
- An interactive map with clustering, sector colours, the district boundary drawn from OpenStreetMap data, and a popup linking to each sheet.
- A GeoJSON endpoint (
/api/empresas.geojson) for anyone who wants the data in another tool. - Roles: public (anonymous, active companies only), operator, administrator. The survey answers are not on the public site — they are behind an authenticated API and never exposed by the public routes.

Reported as delivered, not as promised
The delivery document lists every requirement against its real state — implemented, in progress, or not started. The audit log is modelled but not recording yet; public CSV/PDF downloads and aggregate reports are pending; TLS was left for the production step. Saying that in writing, in the same document that claims the rest, is what makes the rest credible.
What I would keep
- One re-runnable loader per source, not a single import script. Data fixes arrive monthly.
- A versioned SQL snapshot as the only seed source: a new environment comes up with the real census, not with invented rows.
- The boring stack. For a public body with one server and no dedicated frontend team, server-rendered HTML is a maintenance decision, not a compromise.
- Geocoding is not geolocation. Budget the human correction pass from the start.
What it demonstrates
- Taking a real dataset from SPSS and Excel to a queryable, mapped, permissioned system.
- Designing for multi-tenancy before it is needed, at the cost of one foreign key.
- Choosing technology by the client’s operating reality rather than by the current fashion.
- Documenting gaps with the same care as features.