From 0b42947d091ba3d78e052bf06393b03621caa890 Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 6 Jun 2023 08:47:56 +0200 Subject: [PATCH] Create matrikkelid.md (#25) Matrikkelidentifikator docs --- matrikkel/matrikkelid.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 matrikkel/matrikkelid.md diff --git a/matrikkel/matrikkelid.md b/matrikkel/matrikkelid.md new file mode 100644 index 0000000..ceaa9a7 --- /dev/null +++ b/matrikkel/matrikkelid.md @@ -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`