| 428 | {} |
| 429 | |
| 430 | void IntermediateDataWriter::AddRelation(Key id, RelationElement const & e) |
| 431 | { |
| 432 | static std::set<std::string_view> const types = {"multipolygon", "route", "boundary", |
| 433 | "associatedStreet", "building", "restriction"}; |
| 434 | auto const relationType = e.GetType(); |
| 435 | if (!types.count(relationType)) |
| 436 | return; |
| 437 | |
| 438 | m_relations.Write(id, e); |
| 439 | AddToIndex(m_nodeToRelations, id, e.m_nodes); |
| 440 | AddToIndex(m_wayToRelations, id, e.m_ways); |
| 441 | AddToIndex(m_relationToRelations, id, e.m_relations); |
| 442 | } |
| 443 | |
| 444 | void IntermediateDataWriter::SaveIndex() |
| 445 | { |
no test coverage detected