Skip to content

Commit 8660e50

Browse files
committed
1 parent 816f3c0 commit 8660e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/TagFix_Maxspeed_AT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ def way(self, data, tags, nds):
179179

180180
# Error: maxspeed type doesn't match maxspeed
181181
# except for types covered in TagFix_Maxspeed plugin and types without specific speed
182-
if valid_type and valid_type not in {'AT:motorway', 'AT:trunk', 'AT:rural', 'AT:urban', 'sign', 'AT:zone'}:
183-
if maxspeed != self.valid_maxspeed_types.get(valid_type):
182+
if valid_type and valid_type not in {'AT:motorway', 'AT:trunk', 'AT:rural', 'AT:urban'}:
183+
if self.valid_maxspeed_types.get(valid_type) and (self.valid_maxspeed_types.get(valid_type) != maxspeed):
184184
err.append({'class': 6,
185185
'text': T_('maxspeed and type mismatch: `{0}`<>`{1}`', maxspeed, valid_type)})
186186

0 commit comments

Comments
 (0)