| 600 | } |
| 601 | |
| 602 | void MakeGateEndings(vector<transit::Gate> const & gates, NumMwmId mwmId, IndexGraph & indexGraph, |
| 603 | TransitGraph::Endings & gateEndings) |
| 604 | { |
| 605 | for (auto const & gate : gates) |
| 606 | { |
| 607 | auto const & gateSegment = gate.GetBestPedestrianSegment(); |
| 608 | if (!gateSegment.IsValid()) |
| 609 | continue; |
| 610 | |
| 611 | Segment const real(mwmId, gateSegment.GetFeatureId(), gateSegment.GetSegmentIdx(), gateSegment.GetForward()); |
| 612 | gateEndings.emplace(gate.GetOsmId(), MakeFakeEnding({real}, gate.GetPoint(), indexGraph)); |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | void MakeGateEndings(std::vector<::transit::experimental::Gate> const & gates, NumMwmId mwmId, IndexGraph & indexGraph, |
| 617 | TransitGraph::Endings & gateEndings) |
no test coverage detected