From 7a89c6e9ce03a84916c9f9d826064817be6e99bc Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 18 Nov 2016 18:32:44 -0500 Subject: [PATCH] [osm] removing dependencies for house/venue name (purely numeric names taken care of in osm formatter) --- resources/parser/default.yaml | 10 ---------- scripts/geodata/osm/formatter.py | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/resources/parser/default.yaml b/resources/parser/default.yaml index 5f39f143..d54872c5 100644 --- a/resources/parser/default.yaml +++ b/resources/parser/default.yaml @@ -10,16 +10,6 @@ languages: # Dependencies for including each component in an "address" # Two-way dependencies are not an issue component_dependencies: - house: - dependencies: - - house_number - - road - - suburb - - city_district - - city - - state_district - - postcode - road: dependencies: [] diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index 6a5470d4..f406d9b8 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -399,7 +399,7 @@ class OSMAddressFormatter(object): # Since venue names are only one-per-record, this wrapper will try them all (name, alt_name, etc.) formatted_addresses = [] - if AddressFormatter.HOUSE not in address_components or not venue_names: + if not venue_names: return [self.formatter.format_address(address_components, country, language=language, tag_components=tag_components, minimal_only=minimal_only)]