| 1 | meta |
| 2 | { |
| 3 | title: "Missing streetnumber or conscriptionnumber"; |
| 4 | version: "1.00_2018-02-12"; |
| 5 | description: "Copy value of housenumber tag to either streetnumber or conscriptionnumber"; |
| 6 | author: "Jose Riha"; |
| 7 | link: "http://josm.openstreetmap.de/wiki/Rules/CzechRepublicAddressSystem"; |
| 8 | watch-modified: true; |
| 9 | min-josm-version: "11424"; /* due to territory selectors */ |
| 10 | } |
| 11 | |
| 12 | /* see implementation of Czech Republic Address System for JOSM validator as per http://wiki.openstreetmap.org/wiki/Cs:WikiProject_Czech_Republic/Address_system |
| 13 | Only makes sense to edits within borders of Czech and Slovak republic. |
| 14 | |
| 15 | The sole purpose of rule is to use it for populating addr:streetnumber/addr:conscriptionnumber |
| 16 | tags when missing. |
| 17 | |
| 18 | Pozri http://wiki.openstreetmap.org/wiki/Cs:WikiProject_Czech_Republic/Address_system |
| 19 | |
| 20 | Sada tychto jednoduchych pravidiel sluzi na vyplnenie tagov addr:streetnumber/addr:conscriptionnumber. |
| 21 | |
| 22 | Pouzitie: |
| 23 | - nacitate problemovu oblast (elementy s addr:housenumber, ale chybajucimi streetnumber a conscriptionnumber) |
| 24 | - ctrl-f, zadate: |
| 25 | - pre vyhladanie buducich streetnumbers: |
| 26 | "addr:housenumber" -"addr:housenumber":/ -"addr:streetnumber" -"addr:conscriptionnumber" "addr:housenumber" < 300 |
| 27 | - pre vyhladanie buducich conscriptionnumbers: |
| 28 | "addr:housenumber" -"addr:housenumber":/ -"addr:streetnumber" -"addr:conscriptionnumber" |
| 29 | - validator - overit |
| 30 | - vo vysledkoch validacie si vyberiete ci budete vyplnat supisne alebo orientacne cisla |
| 31 | - oznacite, kliknite na opravit |
| 32 | |
| 33 | |
| 34 | please send fixes and suggestions to: jose1711 gmail com |
| 35 | */ |
| 36 | |
| 37 | *[addr:housenumber][!addr:streetnumber][!addr:conscriptionnumber][inside("CZ,SK")]{ |
| 38 | throwWarning: tr("Missing streetnumber while housenumber exists"); |
| 39 | fixAdd: concat("addr:streetnumber=",tag("addr:housenumber")); |
| 40 | } |
| 41 | |
| 42 | *[addr:housenumber][!addr:streetnumber][!addr:conscriptionnumber][inside("CZ,SK")]{ |
| 43 | throwWarning: tr("Missing conscriptionnumber while housenumber exists"); |
| 44 | fixAdd: concat("addr:conscriptionnumber=",tag("addr:housenumber")); |
| 45 | } |