From b98d56399c26603917244a137f87683e596ed208 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Thu, 17 Mar 2016 19:37:00 +0300 Subject: Get unformatted elevation for editor. --- indexer/map_object.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indexer/map_object.cpp') diff --git a/indexer/map_object.cpp b/indexer/map_object.cpp index 5909d40c49..17891111f3 100644 --- a/indexer/map_object.cpp +++ b/indexer/map_object.cpp @@ -173,6 +173,11 @@ string MapObject::GetElevationFormatted() const return {}; } +bool MapObject::GetElevation(double & outElevationInMeters) const +{ + return strings::to_double(m_metadata.Get(feature::Metadata::FMD_ELE), outElevationInMeters); +} + string MapObject::GetWikipediaLink() const { return m_metadata.GetWikiURL(); } string MapObject::GetFlats() const { return m_metadata.Get(feature::Metadata::FMD_FLATS); } -- cgit v1.2.3