Skip to content

Commit

Permalink
Merge pull request #305 from BaseAdresseNationale/mmortier/IdsLegacy
Browse files Browse the repository at this point in the history
ajout du banId aux fichiers legacy adresses et lieux-dits
  • Loading branch information
mmortier authored Oct 26, 2023
2 parents 76b9c77 + 2767181 commit eb28248
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/formatters/csv-legacy.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ function getSource(rawSource) {
function adresseToRow(a) {
return {
id: a.cleInterop,
id_ban_adresse: a.banId || '',
id_ban_toponyme: a.banIdMainCommonToponym || '',
id_ban_district: a.banIdDistrict || '',
id_fantoir: getIdFantoirField(a.codeCommune, a.idVoie) || '',
numero: a.numero,
rep: a.suffixe || '',
Expand Down Expand Up @@ -60,6 +63,8 @@ function adresseToRow(a) {
function lieuDitToRow(a) {
return {
id: a.idVoie,
id_ban_toponyme: a.banId || '',
id_ban_district: a.banIdDistrict || '',
nom_lieu_dit: a.nomVoie,
code_postal: a.codePostal || '',
code_insee: a.codeCommune,
Expand Down

0 comments on commit eb28248

Please sign in to comment.