Skip to content

Commit

Permalink
Create matrikkelid.md (#25)
Browse files Browse the repository at this point in the history
Matrikkelidentifikator docs
  • Loading branch information
laaaders authored Jun 6, 2023
1 parent c2b7309 commit 0b42947
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions matrikkel/matrikkelid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Matrikkelidentifikator

The matrikkelidentifikator is a 20-digit string, constructed in the following manner

`KKKKGGGGGBBBBFFFFSSS`

Where:
* KKKK is kommune(municipality)-number padded with zeroes to be 4 characters wide
* GGGGG is gårdsnummer, padded with zeroes to be 5 characters wide
* BBBB is brukssnummer, padded with zeroes to be 4 characters wide
* FFFF is festenummer, padded with zeroes to be 4 characters wide. This is optional, and set to 0000 if not present
* SSS is seksjonsnummer, padded with zeroes to be 3 characters wide. This is optional, and set to 000 if not present

## Example

We have an eiendom:
* kommune: 0301
* gårdsnummer: 31
* bruksnummer: 472
* festenummer: null
* seksjonsnummer: null

This becomes: `03010003104720000000`

0 comments on commit 0b42947

Please sign in to comment.