From: Roman Bazalevskiy Date: Fri, 24 Nov 2017 09:40:44 +0000 (+0300) Subject: Мелкие исправления при формировании адреса. X-Git-Url: https://git.rvb.name/pyrungps.git/commitdiff_plain/d2651ad4f9981d3e21c5f10fdef0a520d0f2d42d?ds=sidebyside Мелкие исправления при формировании адреса. --- diff --git a/pyosmname.py b/pyosmname.py index b64d4ea..a0ee16f 100644 --- a/pyosmname.py +++ b/pyosmname.py @@ -51,12 +51,12 @@ def printable_name(addr): else: if 'city' in addr: if 'road' in addr: - str = addr['road'] + ', ' + addr['city'] + addr['country'] + str = addr['road'] + ', ' + addr['city'] + ', ' + addr['country'] else: str = addr['city'] + ', ' + addr['country'] elif 'village' in addr: if 'road' in addr: - str = addr['road'] + ', ' + addr['village'] + addr['country'] + str = addr['road'] + ', ' + addr['village'] +', ' + addr['country'] else: str = addr['village'] + ', ' + addr['country'] else: