Skip to main content

Module postal

Module postal 

Source
Expand description

CEDEX codes and the municipalities they serve, stored in an index (its optional Postal section) for the fr profile to geocode CEDEX addresses.

A CEDEX code (“92074 PARIS LA DEFENSE CEDEX”) is a La Poste delivery code, not a place: the BAN does not know it. The table is built from the sources read by crate::readers::cedex.

Structs§

CedexTable
CEDEX code → INSEE codes, and locality → INSEE codes.
CedexTableBuilder
Collects (code, delivery line, municipality) triples from the sources.

Functions§

is_cedex
Whether a delivery label is a CEDEX one.
locality_key
The key a locality is looked up by: what comes before “CEDEX”, upper case ASCII words, “ST” / “STE” spelled out. “Saint-Quentin-en-Yvelines Cedex 3” and “ST QUENTIN EN YVELINES” give “SAINT QUENTIN EN YVELINES”.