File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -94,20 +94,12 @@ node[restriction] {
9494 throwError: tr("{0} on a node. Should be used in a relation", "{0.tag}");
9595}
9696
97- /* {0} on a way, should be a node */
98- way[voltage:primary],
99- way[voltage:secondary],
100- way[voltage:tertiary],
101- way[line_attachment],
102- way[line_management],
97+ /* {0} on a way, should be a node (0.tag) */
10398way[emergency=fire_hydrant],
10499way[emergency=defibrillator],
105- way[entrance],
106- way[door],
107100way[railway=subway_entrance],
108101way[man_made=survey_point],
109102way[power=transformer],
110- way[transformer],
111103way[power=pole],
112104way[power=catenary_mast],
113105way[power=connection],
@@ -130,6 +122,18 @@ way[highway=motorway_junction] {
130122 throwWarning: tr("{0} on a way. Should be used on a node.", "{0.tag}");
131123}
132124
125+ /* {0} on a way, should be a node (0.key) */
126+ way[voltage:primary],
127+ way[voltage:secondary],
128+ way[voltage:tertiary],
129+ way[transformer],
130+ way[line_attachment],
131+ way[line_management],
132+ way[entrance],
133+ way[door] {
134+ throwWarning: tr("{0} on a way. Should be used on a node.", "{0.key}");
135+ }
136+
133137/* {0} on a way, should be a relation; #15642, #10252, #14288 */
134138way[restriction][restriction =~ /^(no_right_turn|no_left_turn|no_u_turn|no_straight_on|only_right_turn|only_left_turn|only_straight_on|no_entry|no_exit)$/],
135139way[type=multipolygon],
You can’t perform that action at this time.
0 commit comments