143 | | } |
144 | | No newline at end of file |
| 143 | } |
| 144 | |
| 145 | way[highway][turn:lanes][turn:lanes:forward], |
| 146 | way[highway][turn:lanes][turn:lanes:backward] { |
| 147 | throwError: tr("turn:lanes and a directional turn:lanes"); |
| 148 | assertMatch: "way highway=primary turn:lanes=through turn:lanes:forward=left"; |
| 149 | assertMatch: "way highway=primary turn:lanes=through turn:lanes:backward=left"; |
| 150 | assertNoMatch: "way highway=primary turn:lanes:forward=left"; |
| 151 | assertNoMatch: "way highway=primary turn:lanes:backward=left"; |
| 152 | assertNoMatch: "way highway=primary turn:lanes=through"; |
| 153 | } |
| 154 | way[highway][turn:lanes][oneway][count(split("|", tag("turn:lanes"))) != tag("lanes")], |
| 155 | way[highway][turn:lanes][!oneway][2 * count(split("|", tag("turn:lanes"))) != tag("lanes")], |
| 156 | way[highway][turn:lanes][!lanes] { |
| 157 | throwWarning: tr("turn:lanes do not match lanes"); |
| 158 | assertMatch: "way highway=primary lanes=4 turn:lanes=left|through|through;right"; |
| 159 | assertNoMatch: "way highway=primary lanes=4 turn:lanes=left;through|through;right"; |
| 160 | } |
| 161 | |
| 162 | way[highway][turn:lanes:forward][lanes:forward][count(split("|", tag("turn:lanes:forward"))) != tag("lanes:forward")], |
| 163 | way[highway][turn:lanes:forward][!lanes:forward][count(split("|", tag("turn:lanes:forward"))) != tag("lanes") / 2], |
| 164 | way[highway][turn:lanes:forward][!lanes][!lanes:forward] { |
| 165 | throwWarning: tr("turn:lanes:forward do not match lanes:forward"); |
| 166 | assertMatch: "way highway=primary lanes:forward=4 turn:lanes:forward=left|through|through;right"; |
| 167 | assertNoMatch: "way highway=primary lanes:forward=4 turn:lanes:forward=left;through|through;right"; |
| 168 | } |
| 169 | |
| 170 | way[highway][turn:lanes:backward][lanes:backward][count(split("|", tag("turn:lanes:backward"))) != tag("lanes:backward")], |
| 171 | way[highway][turn:lanes:backward][!lanes:backward][count(split("|", tag("turn:lanes:backward"))) != tag("lanes") / 2], |
| 172 | way[highway][turn:lanes:backward][!lanes][!lanes:backward] { |
| 173 | throwWarning: tr("turn:lanes:backward do not match lanes:backward"); |
| 174 | assertMatch: "way highway=primary lanes:backward=4 turn:lanes:backward=left|through|through;right"; |
| 175 | assertNoMatch: "way highway=primary lanes:backward=4 turn:lanes:backward=left;through|through;right"; |
| 176 | } |