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

Do not ask AddAddressStreet quest if addr:substreet or addr:parentstreet are present #4490

Merged

Conversation

mnalis
Copy link
Member

@mnalis mnalis commented Oct 12, 2022

This PR (as agreed in #4483 (comment)) skips the AddAddressStreet quest if either addr:substreet or addr:parentstreet are already defined, as answering this quest there would likely only lead to more confusing data, instead of actually helping OSM.
It also adds tests for checking if those are being ignored.

It compiles, passes the tests and seems to work fine; e.g. it skips for example this building: https://www.openstreetmap.org/way/230252831 (v6) which lacks addr:street, but has addr:substreet (and on which the AddAddressStreet quest was previously being asked):

small_Screenshot_20221012_213319_de westnordost streetcomplete mn debug small_Screenshot_20221012_224128_de westnordost streetcomplete mn debug

Closes: #4483

@westnordost
Copy link
Member

Looks fine, thank you!

@westnordost westnordost merged commit 3c88573 into streetcomplete:master Oct 12, 2022
@mnalis mnalis deleted the ignore-uk-parentstreet-substreet branch October 13, 2022 09:20
@FloEdelmann FloEdelmann added the hacktoberfest-accepted pull request that should be treated as eligible for Hacktoberfest event label Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted pull request that should be treated as eligible for Hacktoberfest event
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle addr:substreet and addr:parentstreet as used in the UK in house street name quest
4 participants