Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of citycode #615

Open
krowix opened this issue Mar 27, 2020 · 7 comments
Open

List of citycode #615

krowix opened this issue Mar 27, 2020 · 7 comments
Assignees

Comments

@krowix
Copy link

krowix commented Mar 27, 2020

hi everyone,

is it possible to specify a list of citycode in request api parameter to restrict search on a list of city?

Thanks

@AdrienVH
Copy link

I'm afraid it's not possible (i'm also very interested in such a way to filter results)...

@ericlecoutre
Copy link

I amy be wrong (new to addok since few time)- but I think this is possible
As you have citycode in documents, you can include citycode in your FILTERS (config file)
When you call the APÏ, you can use several values for a filter using :
?q=xxx&citycode=1&citycode=2&citycode=3

@AdrienVH
Copy link

AdrienVH commented Apr 12, 2020

@ericlecoutre
Copy link

ericlecoutre commented Apr 12, 2020 via email

@cquest cquest self-assigned this Nov 22, 2020
@cquest cquest added this to the Next milestone Nov 22, 2020
@cquest
Copy link
Member

cquest commented May 5, 2021

Implemented by 892fb3d

@fnicollet
Copy link

Hello,
From what I can read in the code you shared @cquest , the character "+" is used as a separator, so the query should be (using @AdrienVH example):
https://api-adresse.data.gouv.fr/search/?q=82+carmagnole&citycode=13208+77296

Which returns no result. Has the api-adresse.data.gouv.fr not been updated with this patch since?

(also, I guess the issue should be closed if this feature is now implemented)
Thanks,
Fabien

@AdrienVH
Copy link

AdrienVH commented Aug 3, 2022

Hi Fabien !
I think that there isn't any packaged release with this possibility to have multiple values for the same filter.
We're all waiting for a 1.1 release, including this "AND" filter...

@jdesboeufs jdesboeufs removed this from the 1.1.0 milestone Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants