Ticket #18217: josm_18217.patch

File josm_18217.patch, 1.4 KB (added by skyper, 5 years ago)

patch

  • resources/data/validator/highway.mapcss

     
    77way[highway=~/^(unclassified|residential|living_street|service)$/] {
    88  set minor_road;
    99}
     10*[highway =~ /^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified)$/] {
     11set common_road;
     12}
    1013
    1114/* r3669, #9384, #20117 */
    1215way[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)[.]?$/] {
     
    163166  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
    164167  suggestAlternative: "kerb=*";
    165168  group: tr("suspicious tag combination");
    166 }
    167  No newline at end of file
     169}
     170
     171/* #18217 */
     172way:closed.common_road[area=yes],
     173relation.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