Skip to content
Dalanovum
Book a call Contact
Menu

Clients & projects / Trivsio

21 terabytes of data. A map that is light from the start.

Trivsio compares 955 municipalities in Europe with open data from government agencies. The simple interface rests on a data chain of six steps, with quality assurance in every step.

This deep dive shows one part of the service: the data quality. The map, the 3D models, the texts and the website are stories of their own.

Trivsio's municipal map zoomed out over all of Sweden, with every municipal border and a profile panel on the left
Geographic data before selection
21 TB
Municipalities in Europe
955
Data rows in the database
~30 million
Indicators in the database
108*

Before an indicator may affect a comparison, it is tested in Trivsio's analysis engine. Among other things, it checks that the measure is stable over time and that it really goes with what it is meant to describe.

One square is 100 GB
21,000 GB of data
As HD films, roughly
5,000 feature films
Municipal borders a visitor downloads
1.7 MB ≈ 1/12,000,000 of the data

The data journey in six steps

Pick a step. Each step has its own quality assurance, and the next step starts only when it has passed.

01 · Sources

Data from the agencies

In Sweden, Trivsio takes open data from Statistics Sweden, Kolada, Lantmäteriet, the National Agency for Education, the Crime Prevention Council, SMHI, the Geological Survey and the Companies Registration Office, among others. The Swedish map data alone is about 21 terabytes before anything is selected. Other countries in Europe add their own sources.

Quality assurance in this step

  • Does the source answer, and has its format changed?
  • Is it the right year and release?
02 · Selection

Only what is needed

Most of the material is not needed to compare municipalities. The selection keeps the layers and measures a visitor actually uses.

Quality assurance in this step

  • Is every municipality in the country there?
  • Are values missing, and if so where?
03 · Repair

Broken geometry made whole

Borders from different sources cross themselves, have gaps or overlap. They are repaired so that each municipality is a closed area.

Quality assurance in this step

  • Does a border cross itself?
  • Do the areas cover the country without gaps?
04 · Normalisation

One shared format

CSV, JSON and map files become tables with the same keys. Municipality codes, years and sex are written one way, so the sources can be joined.

Quality assurance in this step

  • Does every row have a valid municipality code?
  • Can the measures be compared across years?
05 · Enrichment

More context

The map gets buildings, water and areas below municipality level. A number can then be seen where it belongs.

Quality assurance in this step

  • Does each building land in the right municipality?
  • Has the data chain run on the latest version of its input?
06 · Delivery

Built light from the start

The map is the same on desktop and phone. The borders are simplified once for the whole country, so two neighbours share exactly the same line: 1.7 MB instead of 12 MB. Roads load in tiles, only what is in view, and a chosen municipality loads its own small file.

Quality assurance in this step

  • Do the type check, lint and tests pass?
  • Do the pages look right in the image test for mobile and desktop?

From values to comparisons

Different questions need different methods. These are the principles, not our internal models or weights.

  1. Compare

    Normalisation

    Different measures must be on the same scale before they can be compared. Trivsio's scoring engine cuts the most extreme values at the 5th and 95th percentile, so one municipality does not stretch the whole scale.

  2. Stability

    Spearman's rank correlation

    Trivsio checks that the order of the municipalities holds from one year to the next. The order must be stable, not the distances. A correlation shows that two things go together, not that one causes the other.

  3. Uncertainty

    Bayesian updating

    An estimate becomes more certain as new information comes in. Trivsio's population work is tested against Bayesian reference models. The picture shows the principle, not a module that computes every page.

More devices, one experience

The aim has been one seamless experience on desktop, tablet and phone. Large amounts of data must load fast without lower quality, and the accessibility rules apply everywhere.

  • The same map and the same detail on every screen, built light from the start
  • Keyboard, screen readers and reduced motion work, and WCAG is tested automatically before every release
  • Data loaded in small parts, only what is in view, so that even large layers load fast

If we put this much thought into data quality alone, think of the rest of the project.

Behind every website we build are as many decisions as the ones you just read about. If you want to talk about what that could mean for you, get in touch.