Skip to content

Commit

Permalink
ajout du banId aux fichiers legacy adresses et lieux-dits
Browse files Browse the repository at this point in the history
  • Loading branch information
mmortier committed Oct 23, 2023
1 parent 3ce5dc2 commit 2767181
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 2767181

Please sign in to comment.