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

Lookup postcode areas for postcode results #3362

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Mar 12, 2024

Postcode searches only use the artificial postcode table to do their lookup. This table does not have the full areas that are sometimes available in the OSM data. Add an additional lookup in the placex table to look for postcode areas with the same country and postcode and return the boundary=postal_code objects instead of the artficial postcode result were available.

Needs a new index over postcode areas.

The seen list will only have the postcode area when available but
we want the postcode point excluded as well if the area has been seen.
@lonvia lonvia merged commit 4fa3493 into osm-search:master Mar 12, 2024
11 checks passed
@lonvia lonvia deleted the find-postcode-areas branch March 12, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant