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:
authorAlex Zolotarev <alex@maps.me>2016-04-07 13:01:45 +0300
committerAlex Zolotarev <alex@maps.me>2016-04-07 19:56:54 +0300
commit1965b193d44970b212ca4463f1b25bf30632c891 (patch)
tree8fc4cb2691f8fafe9ae8aa5485c19982d7386b2f /indexer/map_object.cpp
parent220f32610fb17126e989ed121363021834912efc (diff)
MapObject::IsBuilding() to display additional options in UI for buildings.
Diffstat (limited to 'indexer/map_object.cpp')
-rw-r--r--indexer/map_object.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/map_object.cpp b/indexer/map_object.cpp
index 17891111f3..927ff1f987 100644
--- a/indexer/map_object.cpp
+++ b/indexer/map_object.cpp
@@ -4,6 +4,7 @@
#include "indexer/cuisines.hpp"
#include "indexer/feature.hpp"
#include "indexer/feature_algo.hpp"
+#include "indexer/ftypes_matcher.hpp"
#include "platform/measurement_utils.hpp"
#include "platform/preferred_languages.hpp"
@@ -188,5 +189,11 @@ string MapObject::GetBuildingLevels() const
}
feature::Metadata const & MapObject::GetMetadata() const { return m_metadata; }
+
bool MapObject::IsPointType() const { return m_geomType == feature::EGeomType::GEOM_POINT; }
+
+bool MapObject::IsBuilding() const
+{
+ return ftypes::IsBuildingChecker::Instance()(m_types);
+}
} // namespace osm