feat(routing): can create simple routing with address tdc

This commit is contained in:
Eric Leroy-Terquem 2024-02-21 11:31:49 +01:00
parent 8b4b4d7cb7
commit fade633828
No known key found for this signature in database
GPG key ID: 53D8FAECEF207605
3 changed files with 23 additions and 2 deletions

View file

@ -53,7 +53,7 @@ module Administrateurs
tdc_options = APIGeoService.departements.map { ["#{_1[:code]} #{_1[:name]}", _1[:code]] }
rule_operator = :ds_eq
create_groups_from_territorial_tdc(tdc_options, stable_id, rule_operator)
when TypeDeChamp.type_champs.fetch(:communes), TypeDeChamp.type_champs.fetch(:epci)
when TypeDeChamp.type_champs.fetch(:communes), TypeDeChamp.type_champs.fetch(:epci), TypeDeChamp.type_champs.fetch(:address)
tdc_options = APIGeoService.departements.map { ["#{_1[:code]} #{_1[:name]}", _1[:code]] }
rule_operator = :ds_in_departement
create_groups_from_territorial_tdc(tdc_options, stable_id, rule_operator)