Skip to content
$ bagkit convert bag.zip --output bag.sqlite $ bagkit serve 8080

bagkit

A toolkit for the Dutch register of addresses and buildings (BAG). Convert to SQLite, CSV and Parquet. Address lookup via HTTP.

Reads the national BAG extract

Give it the monthly BAG extract from PDOK as‑is, or the XML files from it. bagkit keeps the voorkomens that are valid on a date you choose, and checks identificaties and references as it goes.

Writes SQLite, Parquet or CSV

One table per object type, or one row per address with its names and coordinates. Convert only the object types you need. SQLite output is a GeoPackage, Parquet is GeoParquet.

Looks up addresses

Find an address by postcode and house number, or the addresses nearest to a coordinate, with bagkit query or over HTTP with bagkit serve.

Exposes a Rust library

The bagkit command is built on a crate you can use directly: stream typed voorkomens into your own code, or write any of the outputs from it.