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

Function MakeGateEndings

libs/routing/transit_graph.cpp:602–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602void 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
616void MakeGateEndings(std::vector<::transit::experimental::Gate> const & gates, NumMwmId mwmId, IndexGraph & indexGraph,
617 TransitGraph::Endings & gateEndings)

Callers 2

CreateTransitGraphMethod · 0.85
BuildWorldGraphFunction · 0.85

Calls 9

GetForwardMethod · 0.80
GetOsmIdMethod · 0.80
MakeFakeEndingFunction · 0.70
IsValidMethod · 0.45
GetFeatureIdMethod · 0.45
GetSegmentIdxMethod · 0.45
emplaceMethod · 0.45
GetPointMethod · 0.45
IsForwardMethod · 0.45

Tested by

no test coverage detected