Skip to content

New validator: mutually exclusive tags#10035

Merged
tyrasd merged 1 commit intoopenstreetmap:developfrom
mtmail:mutually-exclusive-tags-validator
Feb 26, 2024
Merged

New validator: mutually exclusive tags#10035
tyrasd merged 1 commit intoopenstreetmap:developfrom
mtmail:mutually-exclusive-tags-validator

Conversation

@mtmail
Copy link
Copy Markdown
Contributor

@mtmail mtmail commented Dec 10, 2023

Closes #8306, Closes #7589

About 20.000 places currently have name and noname set. https://overpass-turbo.eu/s/1Eyn (map screenshot and discussion at https://community.openstreetmap.org/t/places-with-name-but-also-noname-yes/106858)

I chose 'mutually exclusive' but 'incompatible' or 'conflicting' could also work. I'm open to wording suggestions.

Future versions might need to handle values, too. For example ["wheelchair=yes", "ladder=yes"]. Or patterns ["noname", "name:*"]

In the future I'd like to see the list of pairs maintained by the community in https://github.com/openstreetmap/id-tagging-schema/ like the list of deprecated tags.

Thank you @tyrasd for the iD development workshop at SotM Antwerp.

image

Comment thread modules/validations/mutually_exclusive_tags.js
Comment thread modules/validations/mutually_exclusive_tags.js Outdated
Comment thread data/core.yaml Outdated
Comment thread modules/validations/mutually_exclusive_tags.js
Comment thread modules/validations/mutually_exclusive_tags.js
@mtmail
Copy link
Copy Markdown
Contributor Author

mtmail commented Dec 10, 2023

I added dynamic fixes and better titles, thanks @1ec5.

image

@pnorman
Copy link
Copy Markdown
Contributor

pnorman commented Dec 11, 2023

I added dynamic fixes and better titles, thanks @1ec5.

image

There are two quotation marks after name in the text, there should only be one.

@mtmail
Copy link
Copy Markdown
Contributor Author

mtmail commented Dec 11, 2023

@pnorman Thank you, fixed now.

Comment thread modules/validations/mutually_exclusive_tags.js Outdated
Comment thread modules/validations/mutually_exclusive_tags.js
Comment thread modules/validations/mutually_exclusive_tags.js Outdated
Comment thread data/core.yaml Outdated
Comment thread modules/validations/mutually_exclusive_tags.js
@mtmail
Copy link
Copy Markdown
Contributor Author

mtmail commented Dec 28, 2023

Updated screenshots

image

@tyrasd tyrasd added the validation An issue with the validation or Q/A code label Feb 24, 2024
@mtmail mtmail force-pushed the mutually-exclusive-tags-validator branch from be98a11 to d7d02cb Compare February 25, 2024 17:37
@mtmail mtmail force-pushed the mutually-exclusive-tags-validator branch from d7d02cb to 277b5d4 Compare February 25, 2024 17:41
@mtmail
Copy link
Copy Markdown
Contributor Author

mtmail commented Feb 25, 2024

@tyrasd I removed the commented out code, fixed a codespell warning and moved the list of tags to modules/osm/tags.js. The branch is rebased with develop branch and test pass for me.

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

Labels

validation An issue with the validation or Q/A code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iD should suggest removing noname=yes from roads with a name name and noname tags together

4 participants