[osm] Prefer amenity tag, skip if the building tag is simply building=yes
This commit is contained in:
@@ -447,8 +447,11 @@ def build_venue_training_data(language_rtree, infile, out_dir):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
venue_type = None
|
venue_type = None
|
||||||
for key in (u'building', u'amenity'):
|
for key in (u'amenity', u'building'):
|
||||||
amenity = value.get(key, u'').strip()
|
amenity = value.get(key, u'').strip()
|
||||||
|
if amenity in ('yes', 'y'):
|
||||||
|
continue
|
||||||
|
|
||||||
if amenity:
|
if amenity:
|
||||||
venue_type = u':'.join([key, amenity])
|
venue_type = u':'.join([key, amenity])
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user