Changeset 6601 in josm for trunk/data
- Timestamp:
- 2014-01-02T23:58:58+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/highway.mapcss
r6550 r6601 1 way[highway=~/^(motorway|trunk|primary|secondary|tertiary)(_link)?$/] { 2 set major_road; 3 } 4 way[highway=~/^(unclassified|residential|living_street|service)$/] { 5 set minor_road; 6 } 7 1 8 way[highway][name =~ /(?i).* (Ave|Blvd|Br|Brg|Cct|Cir|Cl|Cr|Crct|Cres|Crt|Ct|Dr|Drv|Esp|Espl|Hwy|Ln|Mw|Mwy|Pl|Rd|Qy|Qys|Sq|St|Str|Ter|Tce|Tr|Wy)[.]?$/] { 2 9 throwWarning: tr("abbreviated street name"); … … 40 47 } 41 48 42 way [highway =~ /motorway|trunk|primary|secondary|tertiary/][!ref] {49 way.major_road[!ref] { 43 50 throwOther: tr("highway without a reference"); 44 51 assertMatch: "way highway=primary"; … … 46 53 } 47 54 48 way [foot][highway =~ /motorway|trunk|primary|secondary|tertiary/] {49 throwWarning: tr("{0} used with {1}", "{0.key}", "{1.tag}");55 way.major_road[foot] { 56 throwWarning: tr("{0} used with {1}", tr("major road"), "{0.tag}"); 50 57 suggestAlternative: "sidewalk"; 51 suggestAlternative: "separate footway"; 58 suggestAlternative: tr("separate footway"); 52 59 assertMatch: "way highway=primary foot=yes"; 53 60 assertNoMatch: "way highway=primary";
Note:
See TracChangeset
for help on using the changeset viewer.