| 1 | | Replying to [ticket:18679 simon04]: |
| 2 | | > In order to make `incline=42%` and `maxspeed=42 mph` work, we have to somehow extract the numeric value from those tags. |
| 3 | | > |
| 4 | | > I propose the following procedure given in pseudocode for a primitive `osm` and `value` (`42%`) for `key` (`incline`): |
| 5 | | > {{{ |
| 6 | | > #!java |
| 7 | | > intValue = rule.valueExtractor(value) || rule.extractDefaultValues(osm) |
| 8 | | > filter = filter(key, intValue) |
| 9 | | > label = rule.valueFormatter(intValue) |
| 10 | | > button = button(label) |
| 11 | | > }}} |
| 12 | | |