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 'generator/osm_id.cpp')
-rw-r--r--generator/osm_id.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/generator/osm_id.cpp b/generator/osm_id.cpp
index 5d9e9fcad2..99f61411e1 100644
--- a/generator/osm_id.cpp
+++ b/generator/osm_id.cpp
@@ -38,6 +38,11 @@ uint64_t Id::OsmId() const
return m_encodedId & RESET;
}
+bool Id::IsWay() const
+{
+ return ((m_encodedId & WAY) == WAY);
+}
+
string Id::Type() const
{
if ((m_encodedId & RELATION) == RELATION)