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

Is-it posssible to return only result with housenumber ? #478

Closed
Azef1 opened this issue Aug 22, 2018 · 3 comments
Closed

Is-it posssible to return only result with housenumber ? #478

Azef1 opened this issue Aug 22, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@Azef1
Copy link

Azef1 commented Aug 22, 2018

Hello,

I am very interested by this software. I did some tests on https://adresse.data.gouv.fr
I would like to know if it is possible to return only results containing a housenumber on autocompletion.
image

My usecase is to normalize address. So in output, i need to have housenumber+street+postcode+city.
If housenumber not found in database, the user must complete his address via an address funnel.

Thx

@Nayor
Copy link

Nayor commented Sep 7, 2018

You can add a filter to the request sent to Addok.
In your example: type=housenumber

For the output you may found what you like in the GoeJSON response.

@cquest
Copy link
Member

cquest commented Dec 20, 2018

filter on type is applied on the type associated with the street/locality/municipality (document), but not linked with housenumbers which are a list of objets related to the street or locality.

type=street works as expected, but not type=housenumber

DBKEY f|type|housenumber returns documents id but housenumbers are not documents but housenumbers inside documents... a special handling is missing to filter them as expected.

@cyrilchapon
Copy link

New here, discovering this annoying behavior, is there something I can do to help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants