Skip to main content

Module cedex

Module cedex 

Source
Expand description

The open sources of CEDEX codes, read into a crate::postal::CedexTableBuilder. All under the Licence Ouverte. La Poste’s own list (Hexaposte) is not open; SIRENE no longer publishes the CEDEX of establishments.

  • read_list: the CEDEX list rebuilt from SIRENE in 2017 (data.gouv.fr “Liste des CEDEX”), frozen but the widest: ~10 800 codes.
  • read_finess: FINESS+ structures (health and social establishments, Agence du Numérique en Santé), monthly: their CEDEX postal addresses.
  • read_annuaire: the Annuaire de l’administration (DILA), daily: idem for public offices.

The JSON sources are streamed, one record at a time: FINESS+ is a single ~800 MB document.

Functions§

read_annuaire
Annuaire de l’administration JSON export (an array of records with adresse and code_insee_commune): the addresses whose city is a CEDEX one. Returns the addresses kept.
read_finess
FINESS+ structures JSON (finess-structures-*.json, decompressed): the addresses of its legal entities (pmej) and their establishments (ege) whose delivery line is a CEDEX. Returns the addresses kept.
read_list
cedex,libelle,insee CSV. Returns the rows kept.