Preset support of alternative preset items

Stephan Knauss osm at stephans-server.de
Wed Aug 19 12:19:21 UTC 2020


On 17.08.2020 23:00, Simon Poole wrote:

 > One of the frequent use of them in JOSM is for address and contact 
fields.
 >
 > This is semantically something totally different than suggesting an
 > alternative preset item (because the current one might be a common
 > mistagging, the alternative might  be a more specific object, etc). And
 > because it is semantically different it should be presented differently.

I think I have an idea what you mean. So it would be an attribute 
describing the relation between two linked presets.

How about something like this:

<preset_link preset_name="Mast" relation="alternative" />

with the relation being one of the attributes:

alternative: to link to a similar preset with different tags
companion: to link to a preset with tags often used in combination
modern: to link to a preset which is a more modern style of tagging for 
the same thing (eg public transport)
legacy: to link to a preset which is a legacy style of tagging for the 
same thing (eg public transport)


The "companion" is already linked frequently in the wiki in the 
Template:KeyDescription as "combination". The "alternative" would be 
covered by "seeAlso".

So we could have this reflected in the presets as well.

Stephan



More information about the josm-dev mailing list