source: josm/trunk/data/validator/territories.mapcss@ 15538

Last change on this file since 15538 was 15359, checked in by Don-vip, 5 years ago

see #17058, fix #18097 - fix MapCSSTagChecker.getLocation

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1/* see ticket #12914 -- Discourage contributors to use operator=ERDF in France. */
2*[operator=ERDF][inside("FR")] {
3 throwWarning: tr("{0} is deprecated", "{0.tag}");
4 suggestAlternative: "operator=Enedis";
5 group: tr("deprecated tagging");
6 fixAdd: "operator=Enedis";
7}
8
9/* #13932, #15283 */
10*[addr:street =~ /(?i).*Strasse.*/][addr:street !~ /(?i).*Strasser.*/][inside("DE,AT")],
11*[name =~ /(?i).*Strasse.*/][name !~ /(?i).*Strasser.*/][inside("DE,AT")] {
12 throwError: tr("street name contains ss");
13 assertMatch: "way name=Hauptstrasse";
14 assertNoMatch: "way name=Hauptstraße";
15 assertNoMatch: "way name=Kapitän-Strasser-Straße";
16 assertNoMatch: "way name=Peter-Strasser-Platz";
17
18}
19*[addr:street =~ /(?i).*Straße.*/][inside("LI,CH")],
20*[name =~ /(?i).*Straße.*/][inside("LI,CH")] {
21 throwError: tr("street name contains ß");
22 assertMatch: "way name=Hauptstraße";
23 assertNoMatch: "way name=Hauptstrasse";
24}
25
26/* #17484 */
27relation[type=associatedStreet][inside("DE")] {
28 throwWarning: tr("{0} is deprecated in {1}", "{0.tag}", "Deutschland");
29 suggestAlternative: "addr:street";
30 group: tr("deprecated tagging");
31}
32
33/* #15107 */
34*[aeroway=helipad ][!faa][inside("US")],
35*[aeroway=aerodrome][!faa][inside("US")] {
36 throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
37 group: tr("Airport tagging");
38}
39*[aeroway=aerodrome][!icao][faa!~/\d/][inside("US")],
40*[aeroway=aerodrome][!iata][faa!~/\d/][inside("US")] {
41 throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
42 group: tr("Airport tagging");
43 assertNoMatch: "way aeroway=aerodrome faa=OK12";
44 assertMatch: "way aeroway=aerodrome faa=ORD";
45}
Note: See TracBrowser for help on using the repository browser.