BaseAdresseNationale / adresse.data.gouv.fr

Le site officiel de l'Adresse
https://adresse.data.gouv.fr
MIT License
153 stars 31 forks source link

Filter by many citycode or postalcode #1506

Open kcomin opened 1 year ago

kcomin commented 1 year ago

Hello,

We have just noticed that we cannot filter by multiple city codes or postal codes.

// Here only the last one is taken into account https://api-adresse.data.gouv.fr/search/?q=4 rue&limit=5&citycode=50019&citycode=50025

// Here it doesn't split https://api-adresse.data.gouv.fr/search/?q=4 rue&limit=5&citycode=50019,50025

https://api-adresse.data.gouv.fr/search/?q=4 rue&limit=5&citycode=[50019,50025]

We are convinced that filtering by multiple city codes used to work before. We had tried with the city of Bordeaux, Talence, and Pessac, and we had results for all three in the same query by putting the three city codes.

Is it possible to have this functionality?

Sincerely, Kevin

tuthur9A commented 1 year ago

Hi , I have the same issue. is there a fix coming ? Best regards

jdesboeufs commented 1 year ago

Multiple values are not allowed. The API Adresse documentation doesn't mention this point. Could be an interesting improvement but I'm not in charge of developing new features.