- Issue created by @lazzyvn
- 🇫🇷France prudloff Lille
address_autocomplete_france a été créé en 2021 et address_suggestion en 2022 donc à l'époque nous n'avons rien trouvé qui remplisse notre besoin.
Si je comprends bien address_suggestion fait de l'autocomplétion sur l'ensemble de l'adresse en une fois, alors qu'address_autocomplete_france suggère uniquement la ville à partir du champ code postal.
On pourrait déprécier address_autocomplete_france mais pour ça il faudrait un hook_update qui transforme les champs automatiquement.
- 🇫🇷France lazzyvn paris
Okay, it's not the same. At first I thought you could probably benefit from BAN's api and it would be easier to add some code to the postal code or city field. But it doesn't seem like, you're calling BAN's library directly without using the api.
remark: i see in controller if (is_numeric($query) && strlen($query) == 5) i think i am not covering all cases like Corse is string starting with 2a 2b
- 🇫🇷France prudloff Lille
remark: i see in controller if (is_numeric($query) && strlen($query) == 5) i think it is not covering all cases like Corse is string starting with 2a 2b
This checks postal codes. Postal codes in Corse are composed of 5 digits: https://en.wikipedia.org/wiki/Communes_of_the_Corse-du-Sud_department