Import/Catalogue/Address import for Norway

From OpenStreetMap Wiki
Jump to navigation Jump to search


Addresses in Norway are being updated from the Cadastre Registry ("Matrikkelen") of the Norwegian Mapping Authority ("Kartverket"). The import started in 2014, with a new version from December 2018. Updates are done once a month, usually around the 15th of each month.

The import has been thoroughly discussed on the Norwegian OSM mailing list, and this wiki page is the result of consensus there. Initial discussion about the address import on the international OSM imports mailing list

Licence and permission to use the data

Data source:

Addresses are licensed under CC BY 4.0.

Kartverket has granted an explicit permission that the data can be integrated into OSM. The e-mail is archived on the Norwegian OSM mailing list.

Kartverket has been added to the list of contributors.

Data quality

As the dataset is based on the official address database of Norway, the data quality is excellent. The dataset is used in the public administration, by the Norwegian mail service, and by emergency and rescue services. Still, as for any dataset, there will be errors. The dataset is updated daily.

Tagging scheme

The dataset contains two types of addresses: gateadresser (street addresses / postal addresses) and matrikkeladresser (land register addresses without street names and house numbers). Only gateadresser will be imported.

The Norwegian community has discussed the import and has decided that all addresses imported will be separate nodes instead of using buildings. The reason is that there is no 1:1 relationship between buildings and addresses. One address node could represent several buildings, and one building could contain several address node. Another choice is to always adjust the address node to the coordinate of the dataset. The reason is that it is not possible to distinguish between "good" and "bad"/mistaken edits. The guideline for the Cadastre Registry is to put the address close to the entrance of the main building. These choices have been generally accepted in the community and there have been no complaints since the import started several years ago.

It is still possible to override this scheme and include address tags on buildings, shops, amenities etc. - just add a note=* containing the word "addr". These address tags will be left alone and will not be updated by the import even if the street gets a new name or the postal code is changed.

The following tags are used:

Source key OSM key Comments
nummer + bokstav addr:housenumber=* Digit(s). Any letters should be upper case. No space between digit(s) and letter(s); e.g. addr:housenumber=16A.
postnummer addr:postcode=* Four digits (must have leading zeros, as in 0051).
adressenavn addr:city=* Norwegian: poststed

No other tags will be added. addr:country=* is not used.

Changeset tags

Changesets shall be tagged with source=Kartverket Matrikkelen and source:date=*,

Import process

A python import program has been created to facilitate the import updates: addr2osm (on Github). The import is fully automated. The program may be run at any time with no particular preconditions. A "manual" option may be used if manual inspection/editing is desired before uploading to OSM.

One municipality is updated at a time, using separate changesets for each municipality.

Dedicated import accounts

The dedicated import account addr2osm is being used.

Data transformation

Tagging is done according to the tagging table above.

Certain abbreviations of street names are fixed, for example:

  • Dr.Gregertsens vei -> Dr. Gregertsens vei
  • Arne M Holdens vei -> Arne M. Holdens vei
  • O G Hauges veg -> O.G. Hauges veg
  • C. A. Pihls gate -> C.A. Pihls gate

Certain known misspellings are also corrected using this json file: corrections.json (on Github).

Also see No:Map_Features#Spelling_of_street_names for general guidelines on street name spelling in Norway.