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

Function MakeStopEndings

libs/routing/transit_graph.cpp:629–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629void MakeStopEndings(std::vector<::transit::experimental::Stop> const & stops, NumMwmId mwmId, IndexGraph & indexGraph,
630 TransitGraph::Endings & stopEndings)
631{
632 for (auto const & stop : stops)
633 {
634 for (auto const & stopSegment : stop.GetBestPedestrianSegments())
635 {
636 Segment const real(mwmId, stopSegment.GetFeatureId(), stopSegment.GetSegmentIdx(), stopSegment.IsForward());
637 stopEndings.emplace(stop.GetId(), MakeFakeEnding(real, stop.GetPoint(), indexGraph));
638 }
639 }
640}
641} // namespace routing

Callers 1

CreateTransitGraphMethod · 0.85

Calls 7

MakeFakeEndingFunction · 0.70
GetFeatureIdMethod · 0.45
GetSegmentIdxMethod · 0.45
IsForwardMethod · 0.45
emplaceMethod · 0.45
GetIdMethod · 0.45
GetPointMethod · 0.45

Tested by

no test coverage detected