openstreetmap-ng
openstreetmap-ng copied to clipboard
Direct tag edit — Taginfo integration
This issue will be worked on after #90 if completed.
The tag editor should support autocomplete with a taginfo integration.
Here are some example requests that iD makes:
https://taginfo.openstreetmap.org/api/4/keys/all?lang=en&page=1&query=&rp=10&sortname=count_ways&sortorder=desc
https://taginfo.openstreetmap.org/api/4/key/values?filter=ways&key=source%3Aaddr&lang=en&page=1&query=&rp=25&sortname=count_ways&sortorder=des
is it possible to have a taginfo+wikiOSM check to warn the user if a deprecated key=value is inserted? (and if present, a suggestion of alternative tags)?
Getting info from wikiOSM is straightforward. I like the idea of integrating deprecation information into the editor, whether it be a simple alert or a colored autocomplete option with a warning sign. However, I am not sure whether there is a standard way to detect alternative tagging for such cases.
The Deprecated feature template in wikiOSM directly should suggests alternative tags. for example the deprecated landuse=reservoir wikiOSM page has this template:
{{Deprecated feature|{{Tag|natural|water}}+{{Tag|water|reservoir}}}}
where natural=water + water=reservoir is the suggested alternative