Loading documentation...
This document defines the canonical region model for cross-source maps and choropleths.
Use one shared region spine for visualization across sources:
BRIS counties.ids for pre-2024 incidents (klass 104 codes such as Viken 30) are listed only in source-api-request-examples.md (“Norwegian Fylke Code Reference”); post-2024 request ids match canonical_code in the table below.
| canonical_code | canonical_name |
|---|---|
| 03 | Oslo |
| 11 | Rogaland |
| 15 | Møre og Romsdal |
| 18 | Nordland |
| 31 | Østfold |
| 32 | Akershus |
| 33 | Buskerud |
| 34 | Innlandet |
| 39 | Vestfold |
| 40 | Telemark |
| 42 | Agder |
| 46 | Vestland |
| 50 | Trøndelag |
| 55 | Troms |
| 56 | Finnmark |
BRASK region ids are old county boundaries. Convert at query/render time to canonical 2024 counties:
| BRASK native_code | BRASK native_name | canonical_code | canonical_name |
|---|---|---|---|
| (empty) | Alle | NULL | Alle |
| 1 | Østfold | 31 | Østfold |
| 2 | Akershus | 32 | Akershus |
| 3 | Oslo | 03 | Oslo |
| 4 | Hedmark | 34 | Innlandet |
| 5 | Oppland | 34 | Innlandet |
| 6 | Buskerud | 33 | Buskerud |
| 7 | Vestfold | 39 | Vestfold |
| 8 | Telemark | 40 | Telemark |
| 9 | Aust-Agder | 42 | Agder |
| 10 | Vest-Agder | 42 | Agder |
| 11 | Rogaland | 11 | Rogaland |
| 12 | Hordaland | 46 | Vestland |
| 14 | Sogn og Fjordane | 46 | Vestland |
| 15 | Møre og Romsdal | 15 | Møre og Romsdal |
| 16 | Sør-Trøndelag | 50 | Trøndelag |
| 17 | Nord-Trøndelag | 50 | Trøndelag |
| 18 | Nordland | 18 | Nordland |
| 19 | Troms | 55 | Troms |
| 20 | Finnmark | 56 | Finnmark |
Explicit exclusions:
21 (Svalbard): excluded from canonical choropleth22 (Jan Mayen): excluded from canonical choropleth99 (Ukjent): excluded from county choropleth; can be shown as "Unknown" side bucketBRIS supports county and municipality filters.
Canonical handling:
03,11,15,18,31,32,33,34,39,40,42,46,50,55,56, map directly.30, 38, 54), resolve by municipality-level attribution when possible; otherwise mark as non-canonical aggregate and exclude from strict county choropleth.Merged county fallback mapping (only when municipality detail is unavailable):
| BRIS merged county id | Name | Canonical split |
|---|---|---|
| 30 | Viken | 31 + 32 + 33 (ambiguous without municipality detail) |
| 38 | Vestfold og Telemark | 39 + 40 (ambiguous without municipality detail) |
| 54 | Troms og Finnmark | 55 + 56 (ambiguous without municipality detail) |
Rule: do not allocate merged totals proportionally unless explicitly approved; keep as non-canonical aggregate.
Per ssb.md, region coding depends on table:
12058: municipality codes (4-digit), no county selector06266, 03173, 03158: include county-level 2-digit region codesCanonical handling:
0 / national totals are not county entities and should not be painted as a county.For all sources, expose these fields in map-serving queries:
canonical_region_code (2-digit county code)canonical_region_namesource_idsource_native_region_codesource_native_region_nameis_canonical (boolean)Rendering rules:
is_canonical = true.30, BRASK 99) are listed outside the map.When seeding fire_data.filters:
axis='region') as-is with stable native_code.standard_code for every row (canonical county code, ALL, UNKNOWN, SVALBARD_JAN_MAYEN, etc.).standard_code; native filters.id stays on facts for provenance.