Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create matrikkelid.md #25

Merged
merged 1 commit into from
Jun 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`