| 524 | } |
| 525 | |
| 526 | void TransitSchemeBuilder::CollectStopsPT(TransitDisplayInfo const & transitDisplayInfo, LinesDataPT const & linesData, |
| 527 | MwmSet::MwmId const & mwmId, MwmSchemeData & scheme) |
| 528 | { |
| 529 | CHECK_EQUAL(transitDisplayInfo.m_transitVersion, ::transit::TransitVersion::AllPublicTransport, ()); |
| 530 | |
| 531 | for (auto const & [stopId, lineIds] : linesData.m_stopToLineIds) |
| 532 | { |
| 533 | auto const itStop = transitDisplayInfo.m_stopsPT.find(stopId); |
| 534 | CHECK(itStop != transitDisplayInfo.m_stopsPT.end(), (stopId)); |
| 535 | |
| 536 | ::transit::experimental::Stop const & stop = itStop->second; |
| 537 | |
| 538 | if (!stop.GetTransferIds().empty()) |
| 539 | continue; |
| 540 | |
| 541 | FillStopParamsPT(transitDisplayInfo, mwmId, stop, lineIds, scheme.m_stopsPT[stopId]); |
| 542 | |
| 543 | scheme.m_stopsPT[stopId].m_isTerminalStop = |
| 544 | (linesData.m_terminalStops.find(stopId) != linesData.m_terminalStops.end()); |
| 545 | } |
| 546 | |
| 547 | for (auto const & transferInfo : transitDisplayInfo.m_transfersPT) |
| 548 | { |
| 549 | ::transit::experimental::Transfer const & transfer = transferInfo.second; |
| 550 | auto & transferNode = scheme.m_transfersPT[transfer.GetId()]; |
| 551 | |
| 552 | for (auto stopId : transfer.GetStopIds()) |
| 553 | { |
| 554 | auto itId = linesData.m_stopToLineIds.find(stopId); |
| 555 | if (itId == linesData.m_stopToLineIds.end()) |
| 556 | continue; |
| 557 | |
| 558 | auto it = transitDisplayInfo.m_stopsPT.find(stopId); |
| 559 | if (it == transitDisplayInfo.m_stopsPT.end()) |
| 560 | continue; |
| 561 | |
| 562 | ::transit::experimental::Stop const & stop = it->second; |
| 563 | FillStopParamsPT(transitDisplayInfo, mwmId, stop, itId->second, transferNode); |
| 564 | transferNode.m_stopsInfo.emplace(stopId, StopInfo()); |
| 565 | } |
| 566 | |
| 567 | transferNode.m_isTransfer = true; |
| 568 | transferNode.m_pivot = transfer.GetPoint(); |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | void TransitSchemeBuilder::CollectLinesSubway(TransitDisplayInfo const & transitDisplayInfo, MwmSchemeData & scheme) |
| 573 | { |