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

All addresses by postcode, limit by number of results param? #38

Closed
henkmeulekamp opened this Issue Feb 15, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@henkmeulekamp
Copy link

henkmeulekamp commented Feb 15, 2016

For the address by postcode api call:
https://postcode-api.apiwise.nl/v2/addresses/?postcode=1234AB

This resource could return many addresses found within the postcode. This request is for a use-case where we primarily want to have a only city and street-name.

Is there a way to limit the response to only the first found address or only the first address in each separate street name (for the special use cases where there are two street names in a postcode)?

It would be nice for example if there was a maxResults parameter:
https://postcode-api.apiwise.nl/v2/addresses/?postcode=1234AB&maxResults=1

Which would mean, give me max 1 results per street name.

@joostfarla

This comment has been minimized.

Copy link
Contributor

joostfarla commented Feb 16, 2016

@henkmeulekamp Thanks for reporting!

We are planning to introduce a new call, which accepts just a postcode. It will return the postcode attributes, like city and street (there can be multiple streets within one postcode though) and no addresses.

Example:

https://postcode-api.apiwise.nl/v2/postcodes/1234AB

It should be released soon!

@henkmeulekamp

This comment has been minimized.

Copy link

henkmeulekamp commented Feb 16, 2016

👍

@dvh dvh added this to the 2.1 milestone Feb 17, 2016

@dvh dvh added the enhancement label Feb 17, 2016

@dvh

This comment has been minimized.

Copy link

dvh commented Feb 17, 2016

Duplicates solution of #32

@dvh dvh closed this Feb 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment