MCPcopy Create free account
hub / github.com/comaps/comaps / GetType

Function GetType

generator/restriction_writer.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64OsmElement::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
77std::string const RestrictionWriter::kNodeString = "node";
78std::string const RestrictionWriter::kWayString = "way";

Callers 4

SetDontNormalizeTypeMethod · 0.70
SetMappingTypesMethod · 0.70
ValidateOsmRestrictionFunction · 0.70
CollectRelationMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected