projects
/
pyrungps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68b3fe3
)
Мелкие исправления при формировании адреса.
author
Roman Bazalevskiy
<rvb@rvb.name>
Fri, 24 Nov 2017 09:40:44 +0000
(12:40 +0300)
committer
Roman Bazalevskiy
<rvb@rvb.name>
Fri, 24 Nov 2017 09:40:44 +0000
(12:40 +0300)
pyosmname.py
patch
|
blob
|
history
diff --git
a/pyosmname.py
b/pyosmname.py
index b64d4eac4f69e20ba4d50bf1f61657498a90f9fd..a0ee16fd392ba7550d5cd2a2686058adf2a7bc10 100644
(file)
--- a/
pyosmname.py
+++ b/
pyosmname.py
@@
-51,12
+51,12
@@
def printable_name(addr):
else:
if 'city' in addr:
if 'road' in 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:
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:
else:
str = addr['village'] + ', ' + addr['country']
else: