mirror of
https://codeberg.org/matkoniecz/list_how_openstreetmap_can_be_improved_with_alltheplaces_data.git
synced 2025-04-11 10:09:29 +02:00
avoid double spaces
This commit is contained in:
parent
be230357df
commit
e323aee1ce
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue