Skip to content

About

A civic transparency platform that maps public procurement spending and business activity across Spanish regions (currently Cantabria, País Vasco, and Asturias), so people can see where public money goes and where economic activity concentrates.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Urban Clarity

Spatial intelligence platform for Spain. Four urban metrics on a 3D map so citizens, journalists, and researchers can see how money, business, income, and rent shape cities.

Core metrics

Metric What it answers
Public Spending Where public money goes — contracts, awards, and procurement
Business Power Where economic activity concentrates — firms and commercial nodes
Salary & Household Income What households earn — census-tract income
Rent Costs What housing costs — official rent indices and market listings

Geographic coverage

Target: all Spanish municipalities (INE municipal codes), filterable by province. Geography keys stay generic: province → municipality → census tract (sección censal) → neighborhood → coordinates.

CCAA → INE province codes, metric readiness, and seed aliases: docs/geographic-coverage.md.

Data sources

Prefer national sources that scale to any municipality or province. Regional portals and city-specific listing URLs are supplements for the pilot.

1. Public Spending

  • PLACSP — national public procurement; Atom syndication (CODICE) (paginate via rel="next"). Pilot ingest filters by province (39 Cantabria; 01/20/48 País Vasco; 33 Asturias via pnpm scrape:placsp:cantabria / pnpm scrape:placsp:pais-vasco / pnpm scrape:placsp:asturias). Fields: tender title, awarded amount (€), awardee, execution location, awarding date.

2. Business Power

  • INE DIRCE — active businesses by municipality and sector group. Ingest: table 4721 CSV via pnpm scrape:dirce:cantabria / pnpm scrape:dirce:pais-vasco / pnpm scrape:dirce:asturias.
  • Regional stats (pilot): ICANE — directorio de empresas
  • OpenStreetMap Overpass (https://overpass-api.de/api/interpreter) — commercial nodes (office, shop, amenity=bank, industrial, building=commercial) around configurable neighborhood centroids

3. Salary & Household Income

  • INE ADRH — household income atlas. Catalog: datos.gob.es. Ingest: jaxiT3 province CSVs (https://www.ine.es/jaxiT3/files/t/csv_bdsc/{tableId}.csv); resolve tableId from the ADRH operation table index (do not use the dead wsevents/.../ADRH JSON API).
  • Granularity: municipality aggregates (5-digit INE; sección rows aggregated at scrape when needed). Fields: renta neta media por persona / por hogar (€/year)

4. Rent Costs

Product goal

Give Spain a national, spatial view of public spending, business activity, household income, and rent — not a Cantabria-only product with region forks.

Ingest national (and optional regional) open data into one model keyed by province and municipality, then expose it as a 3D map and analytics layer. New regions should mostly mean new geo filters and configs; metric readiness lives in docs/geographic-coverage.md.

Contributing

Setup, package layout, commands, and coding rules: CONTRIBUTING.md.

About

A civic transparency platform that maps public procurement spending and business activity across Spanish regions (currently Cantabria, País Vasco, and Asturias), so people can see where public money goes and where economic activity concentrates.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages