[fix] component index
This commit is contained in:
@@ -387,7 +387,7 @@ class OSMAddressFormatter(object):
|
|||||||
|
|
||||||
if component_index:
|
if component_index:
|
||||||
osm_components = [c for i, c in enumerate(osm_components)
|
osm_components = [c for i, c in enumerate(osm_components)
|
||||||
if self.boundary_component_priorities.get(osm_address_components.component_from_properties(country, c, containing=containing_ids[i:]), -1) >= component_index and
|
if self.boundary_component_priorities.get(osm_address_components.component_from_properties(country, c, containing=containing_ids[i + 1:]), -1) >= component_index and
|
||||||
(c['type'], c['id']) != (tags['type'], tags['id'])]
|
(c['type'], c['id']) != (tags['type'], tags['id'])]
|
||||||
|
|
||||||
# Do addr:postcode, postcode, postal_code, etc.
|
# Do addr:postcode, postcode, postal_code, etc.
|
||||||
|
|||||||
Reference in New Issue
Block a user