[6513] | 1 | 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 | throwWarning: tr("abbreviated street name");
|
---|
| 3 | assertMatch: "way highway=unclassified name=\"Foo Ave\"";
|
---|
| 4 | assertMatch: "way highway=unclassified name=\"Foo Ave.\"";
|
---|
| 5 | assertMatch: "way highway=unclassified name=\"Bou Blvd.\"";
|
---|
| 6 | assertMatch: "way highway=unclassified name=\"Bou blvd.\"";
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | node[oneway] {
|
---|
| 10 | throwWarning: tr("oneway tag on a node");
|
---|
| 11 | assertMatch: "node oneway=-1";
|
---|
| 12 | assertNoMatch: "way oneway=-1";
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | node[bridge?] {
|
---|
| 16 | throwWarning: tr("bridge tag on a node");
|
---|
| 17 | assertMatch: "node bridge=yes";
|
---|
| 18 | assertNoMatch: "node bridge=13";
|
---|
| 19 | }
|
---|
| 20 |
|
---|
[6516] | 21 | node[highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street|pedestrian|track|path|footway/][highway!=motorway_junction][highway!=services] {
|
---|
[6513] | 22 | throwWarning: tr("wrong highway tag on a node");
|
---|
| 23 | assertMatch: "node highway=primary";
|
---|
| 24 | assertMatch: "node highway=primary_link";
|
---|
[6516] | 25 | assertNoMatch: "node highway=traffic_calming";
|
---|
| 26 | assertNoMatch: "node highway=bus_stop";
|
---|
[6513] | 27 | assertNoMatch: "node highway=crossing";
|
---|
[6516] | 28 | assertNoMatch: "node highway=emergency_access_point";
|
---|
| 29 | assertNoMatch: "node highway=give_way";
|
---|
| 30 | assertNoMatch: "node highway=mini_roundabout";
|
---|
| 31 | assertNoMatch: "node highway=motorway_junction";
|
---|
| 32 | assertNoMatch: "node highway=passing_place";
|
---|
| 33 | assertNoMatch: "node highway=rest_area";
|
---|
| 34 | assertNoMatch: "node highway=speed_camera";
|
---|
| 35 | assertNoMatch: "node highway=street_lamp";
|
---|
| 36 | assertNoMatch: "node highway=services";
|
---|
| 37 | assertNoMatch: "node highway=stop";
|
---|
| 38 | assertNoMatch: "node highway=traffic_signals";
|
---|
| 39 | assertNoMatch: "node highway=turning_circle";
|
---|
[6513] | 40 | }
|
---|
| 41 |
|
---|
| 42 | way[highway=crossing], way[railway=crossing] {
|
---|
| 43 | throwWarning: tr("wrong crossing tag on a way");
|
---|
| 44 | assertMatch: "way highway=crossing";
|
---|
| 45 | assertNoMatch: "node highway=crossing";
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | way[highway=unclassified][!name] {
|
---|
| 49 | throwOther: tr("Unnamed unclassified highway");
|
---|
| 50 | assertMatch: "way highway=unclassified";
|
---|
| 51 | assertNoMatch: "way highway=unclassified name=Foo";
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | way[highway =~ /motorway|trunk|primary|secondary|tertiary/][!ref] {
|
---|
| 55 | throwOther: tr("highway without a reference");
|
---|
| 56 | assertMatch: "way highway=primary";
|
---|
| 57 | assertNoMatch: "way highway=primary ref=123";
|
---|
| 58 | }
|
---|
| 59 |
|
---|
| 60 | way[highway=road] {
|
---|
| 61 | throwWarning: tr("temporary highway type");
|
---|
| 62 | assertMatch: "way highway=road";
|
---|
| 63 | assertNoMatch: "way highway=residential";
|
---|
| 64 | }
|
---|
| 65 |
|
---|
| 66 | way[highway=cycleway][bicycle?!] {
|
---|
| 67 | throwWarning: tr("cycleway with tag bicycle");
|
---|
| 68 | assertMatch: "way highway=cycleway bicycle=false";
|
---|
| 69 | assertMatch: "way highway=cycleway bicycle=0";
|
---|
| 70 | assertNoMatch: "way highway=cycleway bicycle=yes";
|
---|
| 71 | assertNoMatch: "way highway=cycleway";
|
---|
| 72 | }
|
---|
| 73 |
|
---|
| 74 | way[highway=footway][foot?!] {
|
---|
| 75 | throwWarning: tr("footway with tag foot");
|
---|
| 76 | assertMatch: "way highway=footway foot=false";
|
---|
| 77 | assertMatch: "way highway=footway foot=0";
|
---|
| 78 | assertNoMatch: "way highway=footway foot=yes";
|
---|
| 79 | assertNoMatch: "way highway=footway";
|
---|
| 80 | }
|
---|
| 81 |
|
---|
| 82 | way[highway=cycleway][cycleway=lane] {
|
---|
| 83 | throwWarning: tr("separate cycleway as lane on a cycleway");
|
---|
| 84 | assertMatch: "way highway=cycleway cycleway=lane";
|
---|
| 85 | assertNoMatch: "way highway=cycleway";
|
---|
| 86 | assertNoMatch: "way highway=residential cycleway=lane";
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | way[highway][barrier] {
|
---|
| 90 | throwWarning: tr("barrier used on a way");
|
---|
| 91 | assertMatch: "way highway=residential barrier=hedge";
|
---|
| 92 | assertNoMatch: "way highway=residential";
|
---|
| 93 | assertNoMatch: "way barrier=hedge";
|
---|
| 94 | }
|
---|
| 95 |
|
---|
| 96 | way[highway=footway][maxspeed], way[highway=steps][maxspeed] {
|
---|
| 97 | throwWarning: tr("maxspeed used for footway");
|
---|
| 98 | assertMatch: "way highway=footway maxspeed=20";
|
---|
| 99 | assertNoMatch: "way highway=residential maxspeed=20";
|
---|
| 100 | assertNoMatch: "way highway=footway";
|
---|
| 101 | }
|
---|
| 102 |
|
---|
| 103 | *[name =~ /(?i).*Strasse.*/] {
|
---|
| 104 | throwWarning: tr("street name contains ss");
|
---|
| 105 | assertMatch: "way name=Foobarstrasse";
|
---|
| 106 | assertMatch: "way name=Foobar-Strassenweg";
|
---|
| 107 | assertNoMatch: "way name=Foobarstraße";
|
---|
| 108 | }
|
---|
| 109 |
|
---|
| 110 | /*
|
---|
| 111 | TODO: * : W : / *name * /i == * && name != * # misspelled key name
|
---|
| 112 | */
|
---|