Data Sources
Every dataset used in Swiss Maps — where it comes from, how fresh it is, what it covers, and what it doesn't.
Votations
- Source
- BFS / opendata.swiss — official federal votation results
- Coverage
- National + 26 cantons + districts + municipalities
- Available dates
- Sep 2025, Nov 2025, Mar 2026, Jun 2026
- Freshness
- Published on vote day, updated as communes report in
How results are structured
Each votation date contains all proposals voted on that day, with results at four geographic levels: national, cantonal, district, and municipality. Results appear incrementally as communes finish counting on the evening of the vote.
Proposal types
Swiss federal ballots can include several types of proposal:
The cantonal majority (Ständemehr)
For mandatory referendums and initiatives, a proposal must win in a majority of cantons, not just nationally. Half-cantons (Obwald, Nidwald, Basel-Stadt, Basel-Landschaft, Appenzell Ausserrhoden, Appenzell Innerrhoden) count as half a vote each, giving 23 total cantonal votes. The threshold is 12. This means a proposal can win the popular vote and still fail — or pass with less than 50% nationally — if the cantonal distribution goes the other way.
Known limitations
- ⚠Only the four most recent dates are available. Older results exist back to 1981 but are not included.
- ⚠Results may be partial if not all communes have finished counting on vote day.
- ⚠~1 municipality per canton may not match the boundary file due to commune mergers since 2022.
Demographics
- Main source
- BFS Regionalportraits 2021 — 30 indicators, ~2130 communes
- Religion source
- BFS Volkszählung 2000 (PxWeb
px-x-4003000000_122) - Typology source
- swisstopo — agglomeration classification g1a22, 2022
- Freshness
- Most indicators: 2019 Religion: 2000 Typology: 2022
Indicator groups
The 37 indicators are organised into 10 groups, all at municipality level:
Why religion data is from 2000
The 2000 census (Volkszählung) was the last full-population survey where religion was recorded for every resident in every commune. Since 2010 the BFS uses the Strukturerhebung — a stratified sample of ~200,000 people per year. That sample is statistically representative at canton level and for the ~50–60 largest municipalities, but not for a choropleth covering all ~2,100 Swiss communes. No better source exists for municipality-level religion data.
Urban / periurban / rural classification
The typology comes from the swisstopo agglomeration shapefile (g1a22). Communes are assigned to one of three classes based on their relationship to agglomerations: urban cores and suburban belts → Urban; periurban communes on the agglomeration fringe → Periurban; all remaining communes → Rural. The map uses a categorical 3-colour scale rather than a continuous choropleth.
Left–right index
A composite score computed as (SVP + FDP) − (SP + Greens + GLP) vote share in the 2019 National Council elections. Positive values (blue) indicate a right-leaning commune; negative (red) a left-leaning one. The scale runs roughly from −40 to +60 across Swiss municipalities.
What is not available
- ⚠Income / median taxable income: BFS Steuerstatistik exists at municipality level but is only distributed as Excel files with no confirmed programmatic API.
- ⚠Unemployment rate: SECO publishes monthly registered unemployment but no clean municipality-level API endpoint was found.
- ⚠Religion post-2000: the Strukturerhebung sample is not statistically representative for most of the ~2,100 communes.
- ⚠Nationality by country of origin: BFS data exists but only down to canton level via the public API.
- ⚠Language spoken at home: same limitation as post-2000 religion — sample data only, not suitable for a full municipality-level choropleth.
Trade
- Bilateral totals
- BAZG Annual Report 2024 — 245 countries, 2024 actuals
- Sector breakdown
- SwissImpex (BAZG) — HS8 tariff × country, 2025 (full year)
- Currency
- CHF millions
- Freshness
- Bilateral: 2024 final Sectors: 2025
What is "Business cycle total"?
BAZG publishes two trade totals. This app uses the business cycle total (CHF 283B exports). The broader general total (CHF 394B) adds precious metals, rough diamonds, gemstones, works of art, and antiques — assets that transit Switzerland primarily as financial instruments through Geneva and Zurich commodity markets, not as goods made or consumed here. Excluding them gives a clearer picture of the productive economy.
The Slovenia anomaly
Slovenia ranks #3 in both Swiss exports (CHF 26.4B) and imports (CHF 17.9B) — striking for a country of 2 million people. This is real data. It reflects pharmaceutical supply chains: several large pharma companies have major manufacturing sites in Slovenia producing active pharmaceutical ingredients, which are shipped to Switzerland for formulation then exported globally. The bilateral figures capture these intermediate flows.
Trade agreement status
Each partner is tagged with its current agreement status with Switzerland:
About the sector breakdown
The per-country sector breakdown (visible in the sidebar and on hover) comes from a separate dataset: SwissImpex transaction-level data at the 8-digit HS tariff number, covering 2025. Because the sector data is one year newer than the bilateral totals, the sector shares (percentages) are used rather than absolute values — the sector mix changes slowly year to year, so 2025 shares are a reliable approximation of 2024 sector composition.
Known limitations
- ⚠Partners with very small bilateral trade (below CHF 100M) are not displayed.
- ⚠Precious metals and gems are deliberately excluded from all figures. See SwissImpex for the full general total including these flows.
- ⚠2024 bilateral figures are based on monthly accumulations published through May 2025 and may be subject to minor revision.
- ⚠Sector breakdown uses 2025 data (full year) as a proxy for 2024 sector composition. The sector mix changes slowly, making this a reliable approximation.