Get started
Quickstart
Convert the national extract and look up an adres.
-
Install bagkit on macOS or Linux; see Installation for Windows, Cargo and other options.
curl -fsSL https://dstotijn.github.io/bagkit/install.sh | sh -
Download the national extract. PDOK serves it as one ZIP of about 3.6 GB, linked from Kadaster’s download page. bagkit reads it as it is; there is no need to unpack it.
curl -O https://service.pdok.nl/kadaster/adressen/atom/v1_0/downloads/lvbag-extract-nl.zip -
Convert it. Without options, bagkit writes
bag.sqlitewith every current voorkomen on today’s date.bagkit convert lvbag-extract-nl.zipWhen it finishes, it prints how many voorkomens it converted.
-
Look up an adres by postcode and huisnummer:
bagkit query '/v1/adressen?postcode=9902HA&huisnummer=1'{"adressen": [{"nummeraanduidingIdentificatie": "0003200000137381","postcode": "9902HA","huisnummer": 1,"huisletter": null,"huisnummertoevoeging": null,"openbareRuimteNaam": "Abel Eppensstraat","openbareRuimteIdentificatie": "0003300000116985","woonplaatsNaam": "Appingedam","woonplaatsIdentificatie": "3386","gemeenteNaam": "Eemsdelta","provincieNaam": "Groningen","status": "Naamgeving uitgegeven","indicatieNevenadres": false,"adresseerbaarObject": {"identificatie": "0003010000129210","type": "Verblijfsobject","status": "Verblijfsobject in gebruik","gebruiksdoelen": ["woonfunctie"],"oppervlakte": 118,"geometrie": { "type": "Point", "coordinates": [6.86877201, 53.31933815] },"panden": [{"identificatie": "0003100000119616","oorspronkelijkBouwjaar": 1960,"status": "Pand in gebruik"}]}}]} -
Find the nearest adres to a point, as lengtegraad and breedtegraad:
bagkit query '/v1/adressen/_dichtstbij?punt=6.86877,53.31934'The result is the same adres, with
"afstand": 0.246in metres. -
Serve the HTTP API:
bagkit serve 8080curl 'http://localhost:8080/v1/adressen?postcode=9902HA&huisnummer=1'The server describes its API in OpenAPI at
/v1/openapi.json.
Next steps
Section titled “Next steps”- Convert to Parquet or CSV, or only the object types you need.
- Write an adreslijst when you only need adressen.
- Open the output in QGIS or GeoPandas.
© 2026 David Stotijn · MIT License.