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

Take postcodes from postcode relations into account #870

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Feb 26, 2025

Use postcodes from boundary=postal_code relations which appear in an object's address list. Postcode boundaries need to take precedence over the postcode field from the object because that one may be just an educated guess. addr:postcode tags still have precedence and thus can overwrite the postcode from the relation they are inside.

Fixes #835.

The correct order for resolving postcodes is:

1. addr:postcode tag
2. postcode from boundary=postal_code relation
3. computed postcode for object
@lonvia lonvia merged commit 1a7fd07 into komoot:master Feb 26, 2025
4 checks passed
@lonvia lonvia deleted the postcodes-on-relations branch February 26, 2025 10:11
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.

Incorrect postal code: Herrsching am Ammersee, Germany
1 participant