Proposal:Boolean values

From OpenStreetMap Wiki
(Redirected from Proposed features/boolean values)
Latest comment: 16 years ago by Kevin Steinhardt in topic Votes
Jump to navigation Jump to search
boolean values
Proposal status: Approved (active)
Proposed by: Cohan
Tagging: *=yes|no
Applies to: All keys that expect a boolean value
Definition: The recommended boolean values
Statistics:

Rendered as: n/a
Draft started: 2009-10-03
RFC start: 2009-10-03
Vote start: 2009-10-03
Vote end: 2009-10-17

Proposal

This proposal is to end the ridiculous debate that there is no definition of what boolean values to be used.

Rationale

There is currently a long debate on the talk-list about what boolean values should be used. Or rather, the discussion is about why we only are discussing this instead of doing something about it. (Because someone else should do it.) We need to end it and start making beautiful maps instead.

Tagging

yes or no

Examples:

  • Instead of oneway=true/1/ja/da/japp/jej/Yes/YES/sant/recht/riktigt/korrekt/sschjo/... use oneway=yes - a oneway street
  • oneway=-1 - a oneway street in the opposite direction
  • lit=no - the street/path/object is not lit
  • Instead of bridge=true/1/ja/da/japp/jej/Yes/YES/sant/recht/riktigt/korrekt/sschjo/... use bridge=yes - there is a bridge
  • electrified=no - the railroad is not electrified

NB: These are only examples where yes|no could be used. (And should be used instead of true/1/ja/da/japp/jej/Yes/YES/sant/recht/riktigt/korrekt/sschjo/...) Other descriptive values are still valid, e.g. bridge=viaduct or electrified=contact_line

Applies to

All keys that expects a boolean value.

Additional comments

  • Since other boolean values will continue to be used (yes/true/1/ja/da/japp/jej/Yes/YES/sant/recht/riktigt/korrekt/sschjo/...) renderers are, at least for the moment, encouraged to at least support the most frequently used.
  • Map data editing software are encouraged to automatically change inputed boolean values to yes or no. As we have freeform tagging there is no such thing as a list of all keys that expect a boolean value, nor is there any list of all other possible boolean values that needs changing. Hence this will be needed to be limited to the most used other values. E.g. true -> yes Care has to be taken so that keys expecting numerical values doesn't receive boolean. We don't want e.g. layer=yes
  • Users are encouraged to change boolean values into yes or no as other values are encountered when editing data.
  • Someone with the know-how are welcome to program a bot that changes current values into yes or no. Again, care has to be taken so that keys expecting numerical values doesn't receive boolean. We don't want e.g. layer=yes

Discussion

Unfortunately, this proposal was botched by not following Proposal Status Process defined at Proposed_features#Proposal_creation_guidelines, so discussion on Talk:Proposed_features/boolean_values probably can't help at this stage, but here it is anyway.

Votes

Post-vote

Voting ended, the values are approved