diff --git a/nominatim.py b/nominatim.py index 7be1b2e..1776532 100644 --- a/nominatim.py +++ b/nominatim.py @@ -89,6 +89,7 @@ def nominatim_queries(tags, debug=False): cleaned = re.sub(r'\s/L\s\d+[a-z]*\s', '', cleaned, flags=re.IGNORECASE) # PL, Zabierzów, Leśna 2A /L3 cleaned = re.sub(r'\(.*\)', '', cleaned, flags=re.IGNORECASE) # PL, Kraków, Kapelanka 56 (CH TESCO) cleaned = re.sub(r'\s*street', '', cleaned, flags=re.IGNORECASE) # PL, Krakow, 14 Florianska Street + cleaned = re.sub(r'\s+', ' ', cleaned, flags=re.IGNORECASE) # try to avoid double-spaces, it looks ugly yield cleaned def nominatim_queries_transform_tags_into_queries(tags, debug=False):