[fix] osm components
This commit is contained in:
@@ -655,8 +655,8 @@ def build_address_format_training_data(admin_rtree, language_rtree, neighborhood
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if non_local_language and AddressFormatter.CITY in address_components and (
|
if non_local_language and AddressFormatter.CITY in address_components and (
|
||||||
AddressFormatter.CITY_DISTRICT in osm_address_components or
|
AddressFormatter.CITY_DISTRICT in osm_components or
|
||||||
AddressFormatter.SUBURB in address_components):
|
AddressFormatter.SUBURB in osm_components):
|
||||||
address_components.pop(AddressFormatter.CITY)
|
address_components.pop(AddressFormatter.CITY)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user