I am tagging a lot of toll highways in my country so to make it easily I have created a custom Toll Infrastructure preset. I have decided to make three items:
My question is, if in a toll plaza the same lane has a toll-both and also a toll-gantry, is correct to have on one node the barrier=toll_booth and highway=toll_gantry, or for routing purposes is better to have them in two nodes? Also, does anyone node if I can have conditional commands used in the tagging syntax presets. So I can have a combo box with countries and only show the appropriate e-toll options for that country? Finally, what do you think if I merge first's two items? Will that be helpful? https://josm.openstreetmap.de/josmfile?page=Presets/Toll_Infrastructure&zip=1 Manuel. asked 16 Nov '20, 04:29 mdelatorre |
I don't see any easy way to do this in JOSM outside of doing it in a plugin. JOSM presets don't really have any conditional flow of control elements and further don't implement any of the extension I support http://vespucci.io/tutorials/presets/#extensions which would at least enable region specific presets in a very easy fashion. You can programmatically retrieve values for combo and multi-select fields with the values_from="parameterless java method" attribute. But you would need to add the method via a plugin, and access the current selected object to, in turn, determine the territory it is in and then return the appropriate values. Most of the bits and pieces should already be available to do this, but if essentially all the logic is already in a plugin there probably isn't a lot of value of involving the preset system. answered 16 Nov '20, 13:15 SimonPoole ♦ |