Methodology and data sources
Onviure compares Catalonia's 43 comarques using official, measured data: housing prices, climate, safety, air quality, income and more. This page documents where every figure comes from, which period it covers, and how many comarques have a genuinely measured value.
Real data only — never estimates
Every figure on Onviure comes from a real, measured source: official statistics, monitoring stations, election results or actual property listings. We publish no estimates, interpolations or invented values.
When a data point doesn't exist for a comarca, we show nothing — rather than estimating it. Estimated records are excluded at the source, before they can reach the site.
- Air quality: 14 comarques have no monitoring station — we show no value for them.
- Safety: 3 comarques have no data published by the Mossos d'Esquadra — we show no value for them.
- Unemployment and population growth: 7 comarques (Bages, Osona, Segarra, Solsonès, Vallès Oriental, Moianès and Lluçanès) have not had these indicators republished by Idescat since the 2025 comarcal boundary change.
Sources, periods and coverage
Coverage = comarques (out of 43) with a genuinely measured value for the metric.
| Metric | Source | Period | Coverage |
|---|---|---|---|
| Housing prices (registered sales) | Idescat | 2023–2024 | 43 / 43 |
| Live market prices (asking €/m², homes and land) | Idealista (official API) | Continuous snapshots, updated weekly | 43 / 43 |
| Climate (tropical nights, hot days, cool nights) | Open-Meteo (historical weather) | 2018–2023 average | 43 / 43 |
| Political profile (independence, left–right axis) | Parliament of Catalonia elections | 2024 | 43 / 43 |
| Household income | Idescat | 2022 (provisional) | 42 / 43 |
| Unemployment rate | Idescat (census) | 2022 | 36 / 43 |
| Foreign-born population | Idescat | 2023 | 43 / 43 |
| Median age | Computed from Idescat's five-year age bands | 2023 | 43 / 43 |
| Population growth | Idescat (total growth rate) | Latest published year | 36 / 43 |
| Distances (beach, ski, airport, hospital, Barcelona) | Computed from ICGC facility locations | 2025–2026 | 43 / 43 |
| Tourist accommodation | Catalan Tourism Register | 2026 (live register) | 43 / 43 |
| Schools | Department of Education (Generalitat) | 2024–2025 school year | 43 / 43 |
| Protected nature (PEIN) and forest | Idescat | 2022–2023 | 43 / 43 |
| Air quality (PM2.5, PM10, NO₂, O₃) | XVPCA monitoring stations (Generalitat) | 2025–2026 | 29 / 43 |
| Offences per 1,000 residents | Mossos d'Esquadra | 2024 | 40 / 43 |
| Places of worship | DGAR (Generalitat) | Current register | 43 / 43 |
Metric definitions
Climate metrics
- Tropical night
- Night with minimum temperature ≥20°C (uncomfortable for sleep)
- Cool night
- Summer night (Jun-Aug) with minimum temperature <20°C (comfortable for sleep)
- Hot day
- Day with maximum temperature >32°C
Air quality
- Excellent
- PM2.5 <5 μg/m³
- Good
- PM2.5 <15 μg/m³
- Moderate
- PM2.5 <25 μg/m³
- Poor
- PM2.5 <35 μg/m³
- Very poor
- PM2.5 ≥35 μg/m³
Comarques without a monitoring station show no data — we never estimate values.
Safety Rating
- Very safe
- Top 20% safest (lowest crime rates)
- Safe
- Top 40% safest
- Moderate
- Middle 20%
- Concerning
- Bottom 40%
- High crime
- Bottom 20% (highest crime rates)
This relative ranking accounts for dataset characteristics and is standard in criminology.
AI-generated summaries
The narrative summary at the top of each comarca page is generated with AI, strictly from the measured data documented on this page. The AI writes prose; it never produces figures — every number comes from the sources above.
Update frequency
- Market prices (Idealista): new snapshots every week.
- Air quality: monthly import.
- Crime and tourist accommodation: quarterly import.
- Full site republish with fresh data: monthly.
Attributions
- Statistical data: own elaboration based on Idescat data.
- Comarca boundaries and facilities: Institut Cartogràfic i Geològic de Catalunya (ICGC), CC BY 4.0 licence.
- Weather data by Open-Meteo.com, CC BY 4.0 licence.
- Safety data: Generalitat de Catalunya. Departament d'Interior — Mossos d'Esquadra (open data).
- Property market data: idealista, obtained through its official API.