openstreetmap-ng icon indicating copy to clipboard operation
openstreetmap-ng copied to clipboard

Direct tag edit — Taginfo integration

Open Zaczero opened this issue 1 year ago • 3 comments

This issue will be worked on after #90 if completed.

The tag editor should support autocomplete with a taginfo integration.

image

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

Zaczero avatar Jul 26 '24 14:07 Zaczero

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)?

Aury88 avatar Aug 07 '24 14:08 Aury88

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.

Zaczero avatar Aug 07 '24 21:08 Zaczero

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

Aury88 avatar Aug 08 '24 10:08 Aury88