diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-07-13 19:09:33 +0300 |
---|---|---|
committer | Ilya Zverev <zverik@textual.ru> | 2016-07-13 19:50:43 +0300 |
commit | 01686c72103cec6e4c45916d815b8e9cb695f0f1 (patch) | |
tree | f1c3ed31ea452f9d00a357040f3fc701cc3479e0 /generator/intermediate_elements.hpp | |
parent | 201968fbc3b09b97a08d9176ea0641b32a2af0c7 (diff) |
[generator] Mark buildings that have 3D parts inside
Diffstat (limited to 'generator/intermediate_elements.hpp')
-rw-r--r-- | generator/intermediate_elements.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/generator/intermediate_elements.hpp b/generator/intermediate_elements.hpp index b05aefee26..8267f1599a 100644 --- a/generator/intermediate_elements.hpp +++ b/generator/intermediate_elements.hpp @@ -110,6 +110,22 @@ public: toDo(ways[i].first, ways[i].second); } + string GetNodeRole(uint64_t const id) const + { + for (size_t i = 0; i < nodes.size(); ++i) + if (nodes[i].first == id) + return nodes[i].second; + return string(); + } + + string GetWayRole(uint64_t const id) const + { + for (size_t i = 0; i < ways.size(); ++i) + if (ways[i].first == id) + return ways[i].second; + return string(); + } + void Swap(RelationElement & rhs) { nodes.swap(rhs.nodes); |