Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/python/mwm/mwm.py')
-rw-r--r--tools/python/mwm/mwm.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/python/mwm/mwm.py b/tools/python/mwm/mwm.py
index 4784f98b67..3259a518d1 100644
--- a/tools/python/mwm/mwm.py
+++ b/tools/python/mwm/mwm.py
@@ -496,12 +496,12 @@ RESET = ~(NODE | WAY | RELATION)
def unpack_osmid(num):
- if num & NODE == NODE:
- typ = 'n'
+ if num & RELATION == RELATION:
+ typ = 'r'
elif num & WAY == WAY:
typ = 'w'
- elif num & RELATION == RELATION:
- typ = 'r'
+ elif num & NODE == NODE:
+ typ = 'n'
else:
return None
return typ, num & RESET