[fix] cities
This commit is contained in:
@@ -605,7 +605,9 @@ def build_address_format_training_data(admin_rtree, language_rtree, neighborhood
|
|||||||
if not names or language not in names:
|
if not names or language not in names:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
city = names[language][0]
|
city = names[language][0][0]
|
||||||
|
if not city or not city.strip():
|
||||||
|
continue
|
||||||
address_components[AddressFormatter.CITY] = city
|
address_components[AddressFormatter.CITY] = city
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user