Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pipeline) : Make the soliguide addresses a bit more correct
They always contain the postcode and city name, which unfortunately makes the BAN less reliable :'( Example: curl https://api-adresse.data.gouv.fr/search/?q=311 Av lou Gabian, 83600 Fréjus 83600 Fréjus result_score=0.54 curl https://api-adresse.data.gouv.fr/search/?q=311 Av lou Gabian, 83600 Fréjus result_score=0.73 A y regarder de plus près dans les sources, Soliguide a des addresses contenant toujours code postal et commune. Une regexp pour y remédier ! position__address after_regexp 11 Rue Louis Apffel, 67000 Strasbourg | 11 Rue Louis Apffel 9 Rue Déserte, 67000 Strasbourg | 9 Rue Déserte 107 Ave Parmentier, 75011 Paris | 107 Ave Parmentier 2 Rue Bartisch, 67100 Strasbourg | 2 Rue Bartisch 1 Rue du Rempart, 67000 Strasbourg | 1 Rue du Rempart Hôpital Civil de Strasbourg, 1 Pl. de l'Hôpital, 67000 Strasbourg | Hôpital Civil de Strasbourg, 1 Pl. de l'Hôpital Introduces the first unit test: 13:36:11 19 of 19 START unit_test int_soliguide__adresses::test_address_without_postal_code_and_city [RUN] 13:36:11 19 of 19 PASS int_soliguide__adresses::test_address_without_postal_code_and_city [PASS in 0.17s]
- Loading branch information