Remove duplicate warnings about duplicate stop_area members, Paris -200 warnings :)

This commit is contained in:
Ilya Zverev 2017-10-26 17:57:58 +03:00
parent f652caeb3e
commit 33e7178597

View file

@ -415,10 +415,13 @@ class City:
self.error('Route in two route_masters', m)
self.masters[el_id(m)] = el
elif el['tags'].get('public_transport') == 'stop_area':
warned_about_duplicates = False
for m in el['members']:
stop_area = self.stop_areas[el_id(m)]
if el in stop_area:
self.warn('Duplicate element in a stop area', el)
if not warned_about_duplicates:
self.warn('Duplicate element in a stop area', el)
warned_about_duplicates = True
else:
stop_area.append(el)