Ticket #18217: josm_18217_v3.patch

File josm_18217_v3.patch, 1.1 KB (added by skyper, 4 years ago)

version 3 without additional class

  • resources/data/validator/highway.mapcss

     
    194194node[highway=~/^(traffic_signals|stop|give_way)$/][!traffic_signals       ] < way[highway][junction=roundabout] {
    195195  throwWarning: tr("{0} without right of way", "{1.tag}");
    196196  suggestAlternative: "junction=circular";
    197 }
    198  No newline at end of file
     197}
     198
     199/* #18217 */
     200way[highway =~ /^((motorway|trunk|primary|secondary|tertiary)(_link)?|residential|unclassified)$/][area=yes],
     201relation[highway =~ /^((motorway|trunk|primary|secondary|tertiary)(_link)?|residential|unclassified)$/][type=multipolygon] {
     202  throwError: tr("Area with {0} above {1} is invalid", "highway=*", "highway=service");
     203  group: tr("suspicious tag combination");
     204  suggestAlternative: "area:highway=*";
     205  assertMatch:   "way highway=trunk area=yes";
     206  assertMatch:   "relation highway=trunk type=multipolygon";
     207  assertNoMatch: "way highway=service area=yes";
     208  assertNoMatch: "way highway=trunk";
     209}
     210