Changeset 17253 in josm


Ignore:
Timestamp:
2020-10-22T18:45:02+02:00 (4 years ago)
Author:
Klumbumbus
Message:

see #19980 - Warn about highway=livingstreet together with maxspeed>15 mph (instead of >20 mph)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/combinations.mapcss

    r17247 r17253  
    878878
    879879/* #19980 */
    880 way[highway=living_street][maxspeed][get(split(" ", tag(maxspeed)), 0) > 20] {
     880way[highway=living_street][maxspeed][maxspeed=~/mph/][get(split(" ", tag(maxspeed)), 0) > 15],
     881way[highway=living_street][maxspeed][maxspeed!~/mph/][get(split(" ", tag(maxspeed)), 0) > 20] {
    881882  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
    882883  group: tr("suspicious tag combination");
    883884  assertNoMatch: "way highway=living_street";
    884885  assertNoMatch: "way highway=living_street maxspeed=20";
    885   assertNoMatch: "way highway=living_street maxspeed=\"20 mph\"";
     886  assertNoMatch: "way highway=living_street maxspeed=\"15 mph\"";
    886887  assertNoMatch: "way highway=living_street maxspeed=walk";
    887888  assertMatch: "way highway=living_street maxspeed=30";
    888   assertMatch: "way highway=living_street maxspeed=\"30 mph\"";
    889 }
     889  assertMatch: "way highway=living_street maxspeed=\"20 mph\"";
     890}
Note: See TracChangeset for help on using the changeset viewer.