Changeset 17247 in josm for trunk/resources/data


Ignore:
Timestamp:
2020-10-21T22:36:19+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #19980 - Warn about highway=livingstreet together with maxspeed>20km/h

File:
1 edited

Legend:

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

    r17218 r17247  
    876876  assertNoMatch: "way highway=residential bicycle=use_sidepath";
    877877}
     878
     879/* #19980 */
     880way[highway=living_street][maxspeed][get(split(" ", tag(maxspeed)), 0) > 20] {
     881  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     882  group: tr("suspicious tag combination");
     883  assertNoMatch: "way highway=living_street";
     884  assertNoMatch: "way highway=living_street maxspeed=20";
     885  assertNoMatch: "way highway=living_street maxspeed=\"20 mph\"";
     886  assertNoMatch: "way highway=living_street maxspeed=walk";
     887  assertMatch: "way highway=living_street maxspeed=30";
     888  assertMatch: "way highway=living_street maxspeed=\"30 mph\"";
     889}
Note: See TracChangeset for help on using the changeset viewer.