Lantmäteriet's addresses (belägenhetsadresser): licence, access, format
Checked 2026-11-25 against Lantmäteriet's own pages and the live API. Sources are linked at each fact.
The product
Belägenhetsadress Nedladdning, vektor, Geotorget product number 50700601. It is an EU high-value dataset (the HVD implementing regulation (EU) 2023/138, made Swedish law by lag (2022:818) om den offentliga sektorns tillgängliggörande av data). It has been open since 2025-02-03, which is the created date on every STAC item.
- Product page: https://geotorget.lantmateriet.se/geodataprodukter/belagenhetsadress-nedladdning-vektor-api
- Documentation (version 2025.02, the current one): https://geotorget.lantmateriet.se/dokument/projects/belaegenhetsadress-nedladdning-vektor/released/2025.02/index.html,
Informationsinnehåll.htmlandÅtkomst-och-leverans.htmlin the same folder.
Licence and attribution
CC BY 4.0, under Lantmäteriet's Användningsvillkor för värdefulla datamängder som innehåller personuppgifter (DNR LM2025/009269, version 1.1, 2025-03-04): https://www.lantmateriet.se/globalassets/geodata/geodataprodukter/anvandningsvillkor_for_vardefulla_datamangder_pu.pdf. The STAC collection says the same: "license": "CC-BY-4.0", provider Lantmäteriet (licensor, producer, processor, host).
-
§3.1: anyone may use, spread, modify and build on the data, commercially too. Redistribution is allowed. Whoever publishes or spreads it must state:
- the data source as the product name,
©Lantmäteriet,- that the data has been processed, when it has,
- that CC BY 4.0 applies.
When none of this can sit next to the data, it may go in, or be linked from, the accompanying documentation or metadata.
-
§3.2–3.5, the personal-data part: the user becomes personuppgiftsansvarig (data controller under GDPR) for the personal data received, and must:
- process it only for the purposes stated in the application and approved by Lantmäteriet's decision;
- take only the personal data that purpose needs;
- store and process it inside the EU/EEA. A US-owned cloud is allowed only while the EU–US Data Privacy Framework adequacy decision holds and the provider is certified under it.
-
§4, checks and withdrawal: Lantmäteriet may audit by spot checks. It may withdraw the decision and close access if use differs from the application, or for information-security or national-security reasons.
The attribution text, as korp_collectors::lantmateriet::ATTRIBUTION_SV/_EN:
Adresser: Belägenhetsadress Nedladdning, vektor ©Lantmäteriet, CC BY 4.0 (bearbetad: koordinater omräknade till WGS 84, sammanslagen med OpenStreetMap). Kartdata © OpenStreetMap-bidragsgivare, ODbL.
Addresses: Belägenhetsadress Nedladdning, vektor ©Lantmäteriet, CC BY 4.0 (processed: coordinates converted to WGS 84, merged with OpenStreetMap). Map data © OpenStreetMap contributors, ODbL.
The merged address.parquet holds OSM rows. As a whole it is therefore a database derived from OSM and falls under ODbL. Lantmäteriet's rows keep their CC BY 4.0 attribution through the text above, which the job also writes into the parquet key/value metadata (korp.attribution) and into ATTRIBUTION.txt beside the file.
Access
-
The catalogue is open:
https://api.lantmateriet.se/stac-vektor/v1/, collectionbelagenhetsadresser. It lists 290 items, one per kommun (item id = kommunkod). Each item carries its zip URL,file:size,updatedandproj:epsg3006. The total was 324.6 MB on 2026-11-24. Searching needs no login. -
The files need a login:
https://dl1.lantmateriet.se/adress/belagenhetsadresser/belagenhetsadresser_kn<kod>.zipanswers401(WWW-Authenticate: Basic realm="Authorization Server") without credentials. Access is granted per collection, so an account without this product gets403. -
How to get it: order the product on Geotorget. It is free (avgiftsfri), but "Din användning kommer att prövas juridiskt i enlighet med fastighetsregisterlagen": a caseworker reviews the stated purpose, and the decision can take days. The order form asks for:
- the purpose (ändamål), with Annat ändamål and a free-text description;
- use and spreading/processing (Användning, Spridning/Bearbetning);
- where the data is stored (Lagring: inside the EU/EEA);
- a confirmation that the applicant is data controller.
OSM contributors report that applications from private persons for anything other than private use were refused, and that an organisation's application to publish (to OpenAddresses) was approved in July 2026 (https://community.openstreetmap.org/t/lantmateriet-belagenhetsadress/127427?page=4).
-
Authentication (from Åtkomst och leverans): either
- HTTP Basic with the Geotorget user's name and password, or
- OAuth2 client credentials from the API portal (search the API by its name,
STAC-vektor; token endpointhttps://apimanager.lantmateriet.se/oauth2/token).
Format, cadence, coordinates
- Delivery: one zip per kommun holding one GeoPackage,
belagenhetsadresser_kn<kod>.gpkg. The GeoPackage has one point layer,belagenhetsadress, and one table without geometry,adressplatsanmarkning, joined onbelagenhetsadress_id. The attributes are listed in Informationsinnehåll: adressplatsnummer, bokstavstillagg, lagestillagg (UH/UV/U) and its number, status (Gällande/Reserverad), adressplatstyp, avvikande beteckning, postnummer, postort, kommunkod, kommunnamn, adressområde, gårdsadressområde, kommundel, distrikt, and two UUIDs. - Coordinates: SWEREF 99 TM (EPSG:3006). Heights, where given, are RH 2000.
- Cadence: the municipalities update the register as they decide addresses. Delivery is from a pre-produced store refreshed weekly; on 2026-11-24 every item had
updatedbetween 11:22 and 11:38 UTC. Coverage is nationwide, with gaps in sparsely populated and mountain areas.
What the collector does with it
src/lantmateriet/ (feature lantmateriet), run with cargo xtask collect lantmateriet-addresses:
-
Fetch: the STAC listing is followed by one zip at a time, through the crate's
Acquireseam:- resumable (
.partial+Range:); - finalised only at the catalogue's exact
file:size; - every zip member's CRC-32 verified;
- a manifest keyed on
updated, so a weekly re-run fetches only what was re-published; - 1.5 s between requests, backoff on 429/5xx;
- User-Agent
korp-collectors/<version> (+https://git.gunnar.rs/nordisk).
- resumable (
-
Parse: a pure-Rust read-only SQLite reader and GeoPackage geometry decode. No GDAL, no SQLite C library.
-
Project: Krüger's formulas, SWEREF 99 TM → latitude/longitude. They agree with PROJ to under 1 mm on the test points. SWEREF 99 → WGS 84 is the identity at map precision.
-
Normalise: the table in
model.rs. Reserved addresses are dropped, entrances collapse to one address, postcodes are writtenNNN NN, and postort is recased from capitals. Identifiers are dropped: Lantmäteriet's lawyers count the UUIDs and the property reference as personal data, and the map needs neither. -
Merge: the same street and number within 250 m count as one address. The row keeps Lantmäteriet's fields and position, and
sourcekeeps the OSM id. The table gets a neworigincolumn (osm/lm) and akommuncolumn. Per-kommun coverage is written tocoverage.csv/coverage.json. -
Twins: after the match, rows with the same street, number (letter included) and town (or one without a city) within 5 m are one address written twice and become one row. The other OSM ids go to a
twinscolumn (List<Int64>), along with the OSM rows folded into a Lantmäteriet row that are not its link. On the Sweden OSM index 3,827 of 919,992 rows collapse this way.
What the owner has to do
Order "Belägenhetsadress Nedladdning, vektor" on Geotorget as an organisation, with the purpose of publishing addresses in a public web map with address search and as open data under CC BY 4.0, stored in Sweden. Once it is approved, put the Geotorget user and password (or an API-portal consumer key and secret) in the vault as LM_GEOTORGET_USER/LM_GEOTORGET_PASSWORD (or LM_CONSUMER_KEY/LM_CONSUMER_SECRET).