[osm] Adding method for overriding per-country boundary types (either by id or containing polygon)

This commit is contained in:
Al
2016-07-15 19:50:22 -04:00
parent 538861a880
commit 7489c14455
2 changed files with 44 additions and 14 deletions

View File

@@ -339,7 +339,7 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex):
if name and name == attrs.get('name'):
continue
containing_component = osm_components.get_first_component(country, props)
containing_component = osm_components.component_from_properties(country, props)
if containing_component != AddressFormatter.SUBURB:
skip_node = True