[osm] removing dependencies for house/venue name (purely numeric names taken care of in osm formatter)
This commit is contained in:
@@ -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: []
|
||||
|
||||
|
||||
@@ -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)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user