[addresses] allowing neighborhood components to be passed in

This commit is contained in:
Al
2017-02-17 02:11:56 -05:00
parent e7d8577ad7
commit 5b616dfb57

View File

@@ -1763,7 +1763,7 @@ class AddressComponents(object):
population_from_city=False, check_city_wikipedia=False,
add_sub_building_components=True, hyphenation=True,
num_floors=None, num_basements=None, zone=None,
osm_components=None):
osm_components=None, neighborhoods=None):
'''
Expanded components
-------------------
@@ -1793,6 +1793,7 @@ class AddressComponents(object):
non_local_language = None
language_suffix = ''
if neighborhoods is None:
neighborhoods = self.neighborhood_components(latitude, longitude)
all_osm_components = osm_components + neighborhoods