[fix] order
This commit is contained in:
@@ -348,6 +348,8 @@ class AddressComponents(object):
|
|||||||
same_name_as_original = True
|
same_name_as_original = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
containing_ids = [(c['type'], c['id']) for c in osm_components[i + 1:] if 'type' in c and 'id' in c]
|
||||||
|
|
||||||
component = osm_address_components.component_from_properties(country, props, containing=containing_ids)
|
component = osm_address_components.component_from_properties(country, props, containing=containing_ids)
|
||||||
if name_equal and component == tag:
|
if name_equal and component == tag:
|
||||||
continue
|
continue
|
||||||
@@ -356,8 +358,6 @@ class AddressComponents(object):
|
|||||||
|
|
||||||
is_state = False
|
is_state = False
|
||||||
|
|
||||||
containing_ids = [(c['type'], c['id']) for c in osm_components[i + 1:] if 'type' in c and 'id' in c]
|
|
||||||
|
|
||||||
if component is not None:
|
if component is not None:
|
||||||
for cn in component_names:
|
for cn in component_names:
|
||||||
components[cn.lower()].add(component)
|
components[cn.lower()].add(component)
|
||||||
|
|||||||
Reference in New Issue
Block a user