Ticket #18217: josm_18217.patch
| File josm_18217.patch, 1.4 KB (added by , 5 years ago) |
|---|
-
resources/data/validator/highway.mapcss
7 7 way[highway=~/^(unclassified|residential|living_street|service)$/] { 8 8 set minor_road; 9 9 } 10 *[highway =~ /^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified)$/] { 11 set common_road; 12 } 10 13 11 14 /* r3669, #9384, #20117 */ 12 15 way[highway][name =~ /(?i).* (Ave|Blvd|Bnd|Br|Brg|Cct|Cir|Cl|Cr|Crct|Cres|Crt|Ct|Cv|Dr|Drv|Esp|Espl|Hwy|Ln|Mw|Mwy|Pky|Pkwy|Pl|Rd|Qy|Qys|Sq|St|Str|Ter|Tce|Tr|Trl|Vw|Wy|Xing)[.]?$/] { … … 163 166 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}"); 164 167 suggestAlternative: "kerb=*"; 165 168 group: tr("suspicious tag combination"); 166 } 167 No newline at end of file 169 } 170 171 /* #18217 */ 172 way:closed.common_road[area=yes], 173 relation.common_road[type=multipolygon] { 174 throwError: tr("Area with {0} above {1} are invalid", "highway=*", "highway=service"); 175 group: tr("suspicious tag combination"); 176 suggestAlternative: "area:highway=*"; 177 assertMatch: "way highway=trunk area=yes"; 178 assertMatch: "relation highway=trunk type=multipolygon"; 179 assertNoMatch: "way highway=service area=yes"; 180 assertNoMatch: "way highway=trunk"; 181 } 182
