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:
authortatiana-yan <tatiana.kondakova@gmail.com>2019-02-20 17:23:30 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2019-02-21 16:37:52 +0300
commitd3576782a0716364fdba40cf267e93acd64d3a64 (patch)
treecc9e31421419020df43eed61b8f2ab126a0e37de /indexer/map_object.cpp
parentbe773015f6f829b840d229bb85cc0d8809aa36f6 (diff)
[editor][indexer] Use EditableMapObject in editor instead of FeatureType.
Diffstat (limited to 'indexer/map_object.cpp')
-rw-r--r--indexer/map_object.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/map_object.cpp b/indexer/map_object.cpp
index 7476087f57..c3e1d9203a 100644
--- a/indexer/map_object.cpp
+++ b/indexer/map_object.cpp
@@ -74,8 +74,8 @@ void MapObject::SetFromFeatureType(FeatureType & ft)
m_name = ft.GetNames();
m_types = feature::TypesHolder(ft);
m_metadata = ft.GetMetadata();
+ m_houseNumber = ft.GetHouseNumber();
m_featureID = ft.GetID();
- ASSERT(m_featureID.IsValid(), ());
m_geomType = ft.GetFeatureType();
if (m_geomType == feature::GEOM_AREA)
{
@@ -96,6 +96,7 @@ FeatureID const & MapObject::GetID() const { return m_featureID; }
ms::LatLon MapObject::GetLatLon() const { return MercatorBounds::ToLatLon(m_mercator); }
m2::PointD const & MapObject::GetMercator() const { return m_mercator; }
vector<m2::PointD> const & MapObject::GetTriangesAsPoints() const { return m_triangles; }
+vector<m2::PointD> const & MapObject::GetPoints() const { return m_points; }
feature::TypesHolder const & MapObject::GetTypes() const { return m_types; }
string MapObject::GetDefaultName() const
@@ -110,6 +111,8 @@ StringUtf8Multilang const & MapObject::GetNameMultilang() const
return m_name;
}
+string const & MapObject::GetHouseNumber() const { return m_houseNumber; }
+
string MapObject::GetLocalizedType() const
{
ASSERT(!m_types.Empty(), ());