Skip to main content

Module grouped

Module grouped 

Source
Expand description

Address registers published one row per address (Luxembourg’s BD-Adresses, Belgium’s BeST) turned into addok documents.

addok indexes streets carrying their housenumbers, plus municipalities and localities. The rows are grouped by street; a housenumber whose postcode or city differs from its street’s carries its own (addok merges the housenumber’s fields into the result), so one street crossing two postcodes stays one document and each label is right. Then:

  • street: positioned on its housenumber closest to their centroid, so the point lies on the street;
  • municipality: one per municipality, on its housenumber closest to the centroid of all of them;
  • locality: the localities (Luxembourg) or postal names (Belgium) differing from their municipality, same positioning.

The registers carry no importance: it is derived from the number of addresses, on a log scale, like a population proxy.

Structs§

AddressRow
One address of a register.
Grouper
documents, one row at a time: a register is never held in memory, only its streets.

Functions§

distinct
Distinct non-empty values, in order.
documents
Group the rows into documents; id_prefix keeps identifiers unique across countries (“lu”, “be”).