-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Block deprecated high-use tag values fetched from taginfo #4508
Comments
Sorry, there isn't really a way to filter this field to only "good" values. OpenStreetMap lets people type anything into most fields, and the For certain features like ice skating rinks or racetracks, we can display a small subset of |
I understand that it's just a list of values from taginfo. But can it not be done the other way about by filtering out the "bad" values? Basically remove hockey and football from the dropdown list.
Sure, but I thought iD was about making things easier for beginners etc. - hence why you have presets so people can type in "football" and get the correct options. New users won't know that hockey and football are discouraged. At the very least the actual searching could be improved - as you can see in the first image, typing in "hockey" autofills hockey, but doesn't show field or ice hockey unless you scroll down. |
Why are they discouraged? |
These terms are used for different kinds of sports in American and British usage:
OSM-Tags should use British English, but I don't think non-British users do strictly follow this rule. |
They are discouraged because they mean different things in different countries, and should be replaced by a more specific and unambiguous word. Football can mean about six different sports across the world: https://wiki.openstreetmap.org/wiki/Football My issue with it is: if someone edits a pitch without a sport tag, they are more likely to type in the sport field than search for the sport in the main preset list. Therefore they won't have the benefit of translations - e.g. football -> soccer for someone in the UK.
Up to a point, yes - but for example with pavement, sidewalk is preferred in OSM because its meaning is clear. |
It sounds like there could be a useful case for allowing some fields to have a tag value blocklist, which would let us exclude some deprecated but popular results from what we fetch from taginfo. I don't want to add this feature just for the |
I have already suggested a blacklist and also a whitelist in #3709 , and they are even more useful as long as taginfo limitations prevent solving #3709 in full. Blacklisting and whitelisting needs to be preset specific for many cases. Main usecases seem to be:
|
Yes but #3709 was mostly about something else (using taginfo to determine reasonable pairings) , and I still think the idea of automatically retagging things would upset people.
This case is the only one I'm suggesting - and I'm not yet convinced we should do it. |
@bhousel I think you have totally misunderstood what I have meant with retagging. I agree retagging existing features automatically would likely upset people. Where automatic retagging is possible, we don't need iD to do this anyway. There are better tools for automatic edits than iD. What I was talking about is from the users view more a further abstraction of presets, fields and there values. I have misleadingly used the term retagging because the way to implement it would likely be an internal postprocessing of temporarily generated tag values. Presets and fields are an abstract thing. There names do not necessarily match the key names. ID isn't asking the user: "Does the feature fit to the formal definition of man_made=tower? And which value has to be used for the tower:type key?" |
I thought about this more, and let's not do this. The OSM community needs to take responsibility for the tags, not expect editors to build in a bunch of extra logic to know which tags are better than which other tags. If |
@bhousel |
Just curious about this point - sport=football is currently at ~3,400 uses, so how low does it need to go before it stops being suggested in the sports field? Because sport=gaelic_football (deprecated) is at 62 uses yet still gets suggested when typing in either gaelic or football. |
Sure @boothym the code is here: iD/modules/services/taginfo.js Line 93 in 8720f7e
You can also go to taginfo and search: https://taginfo.openstreetmap.org/keys/sport#values Then type "football" in the search box. You can also see the raw JSON results. Basically for value lookups, the value must have fraction |
So if gaelic_football goes down to zero uses, it will still be returned because it has a wiki page? Even if the wiki page is only there to tell people the tag is deprecated - probably like the rest in this category: https://wiki.openstreetmap.org/wiki/Category:Tag_descriptions_with_status_%22deprecated%22 |
Yes, I think so.. |
And there's no way to exclude those with status=Deprecated in the wiki (or would that need to be something taginfo does)? |
Yes, we just take whatever we get from taginfo. There are a few related issues in the taginfo repo about this: taginfo/taginfo#196 Taginfo doesn't have any built in logic to try to decide wiki pages are "good" or "bad" or parse deprecation statuses (which are admittedly pretty arbitrary). /cc @joto (whom I agree with) |
When editing an existing pitch which is simply tagged leisure=pitch, you type the sport in the sport field. However unlike the main preset list, which adds sport=soccer when searching for football, the sport field allows both hockey and football to be added. These are ambiguous and should be avoided - is it possible to remove them, and add soccer when typing in football?
The text was updated successfully, but these errors were encountered: