diff --git a/maps.py b/maps.py
index e34d168aa..4f95cdefd 100644
--- a/maps.py
+++ b/maps.py
@@ -49,6 +49,26 @@ def get_location_dict_from_tags(tags: []) -> str:
return None
+def _location_address_from_dict(location: {}) -> str:
+ """returns location address as a string
+ """
+ location_str = ''
+ address_section_name = (
+ 'streetAddress',
+ 'addressLocality',
+ 'addressRegion',
+ 'postalCode',
+ 'addressCountry'
+ )
+ for addr_section in address_section_name:
+ if location.get(addr_section):
+ if isinstance(addr_section, str):
+ if location_str:
+ location_str += ', '
+ location_str += location[addr_section]
+ return location_str
+
+
def _get_location_from_tags(tags: []) -> str:
"""Returns the location from the tags list
"""
@@ -70,6 +90,9 @@ def _get_location_from_tags(tags: []) -> str:
locn_address = remove_html(locn['address'])
locn_address = locn_address.replace(', ', '
')
location_str += '