Use nearest pedestrian segment stored in mwm for transit to real mapping

This commit is contained in:
tatiana-kondakova 2017-10-16 13:00:42 +03:00 committed by Yuri Gorshenin
parent f3b47f6e48
commit d7f453669f

View file

@ -80,11 +80,10 @@ void TransitGraph::Fill(vector<transit::Stop> const & stops, vector<transit::Gat
for (auto const & gate : gates)
{
// TODO (@t.yan) after https://github.com/mapsme/omim/pull/7240 merge
// auto const gateSegment = gate.GetBestPedestrianSegment();
// Segment real(numMwmId, gateSegment.GetFeatureId(), gateSegment.GetSegmentIdx(), gateSegment.GetForward());
auto const gateSegment = gate.GetBestPedestrianSegment();
Segment real(numMwmId, gateSegment.GetFeatureId(), gateSegment.GetSegmentIdx(), gateSegment.GetForward());
auto const ending =
MakeFakeEnding(Segment() /* real */, gate.GetPoint(), estimator, indexGraph);
MakeFakeEnding(real, gate.GetPoint(), estimator, indexGraph);
if (gate.GetEntrance())
AddGate(gate, ending, stopCoords, true /* isEnter */);
if (gate.GetExit())