diff options
author | Alex Zolotarev <alex@maps.me> | 2016-03-17 19:37:00 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:56:55 +0300 |
commit | b98d56399c26603917244a137f87683e596ed208 (patch) | |
tree | a8148fde5b1c2e7f5e7e39ff05ea1fce28861451 /indexer/map_object.cpp | |
parent | 88fddc38b762e4493eab69014a7045e3660ca048 (diff) |
Get unformatted elevation for editor.
Diffstat (limited to 'indexer/map_object.cpp')
-rw-r--r-- | indexer/map_object.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |