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

Add support for tags dependencies in validation #9200

Open
flacombe opened this issue Jul 12, 2022 · 0 comments
Open

Add support for tags dependencies in validation #9200

flacombe opened this issue Jul 12, 2022 · 0 comments

Comments

@flacombe
Copy link

flacombe commented Jul 12, 2022

Description

Dear maintainers,

Following openstreetmap/id-tagging-schema#447 and openstreetmap/id-tagging-schema#415 a new validation features would be useful to add to iD.

Tagging dependencies support is a key feature in OSM quality assurance.
Wiki and DataItems state some tags require to combine with another(s) one(s) on the osm feature we intend to tag to be valid.
Examples : https://wiki.openstreetmap.org/wiki/Key:voltage:primary requires https://wiki.openstreetmap.org/wiki/Key:transformer
Although those tags are specific and technical ones, tagging dependencies covers many tagging scheme in OSM.

Expected result: Features like https://www.openstreetmap.org/way/1002130808 should raise a warning since no transformer=* is used in combination with voltage:primary=*.

It is currently not possible to implement such checks in iD validation to encourage users to change their tagging with a message.
It leads to pretty big inconsistencies and confusion, when some tags are used in context they're not supposed to.
Would you mind supporting this in iD logic please?

Best regards

Screenshots

No response

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

No branches or pull requests

1 participant