| 62 | } |
| 63 | |
| 64 | OsmElement::EntityType GetType(RelationElement const & relationElement, uint64_t osmId) |
| 65 | { |
| 66 | for (auto const & member : relationElement.m_ways) |
| 67 | if (member.first == osmId) |
| 68 | return OsmElement::EntityType::Way; |
| 69 | |
| 70 | for (auto const & member : relationElement.m_nodes) |
| 71 | if (member.first == osmId) |
| 72 | return OsmElement::EntityType::Node; |
| 73 | |
| 74 | UNREACHABLE(); |
| 75 | } |
| 76 | |
| 77 | std::string const RestrictionWriter::kNodeString = "node"; |
| 78 | std::string const RestrictionWriter::kWayString = "way"; |
no outgoing calls
no test coverage detected