Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'routing/bicycle_directions.cpp')
-rw-r--r--routing/bicycle_directions.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/routing/bicycle_directions.cpp b/routing/bicycle_directions.cpp
index 97d6429094..8a504c8eba 100644
--- a/routing/bicycle_directions.cpp
+++ b/routing/bicycle_directions.cpp
@@ -263,6 +263,8 @@ void BicycleDirectionsEngine::GetSegmentRangeAndAdjacentEdges(
ASSERT_NOT_EQUAL(highwayClass, ftypes::HighwayClass::Error, ());
ASSERT_NOT_EQUAL(highwayClass, ftypes::HighwayClass::Undefined, ());
+ bool const isLink = ftypes::IsLinkChecker::Instance()(ft);
+
double angle = 0;
if (inEdge.GetFeatureId().m_mwmId == edge.GetFeatureId().m_mwmId)
@@ -281,11 +283,12 @@ void BicycleDirectionsEngine::GetSegmentRangeAndAdjacentEdges(
// should not be used for turn generation.
outgoingTurns.isCandidatesAngleValid = false;
}
- outgoingTurns.candidates.emplace_back(angle, ConvertEdgeToSegment(*m_numMwmIds, edge), highwayClass);
+ outgoingTurns.candidates.emplace_back(angle, ConvertEdgeToSegment(*m_numMwmIds, edge),
+ highwayClass, isLink);
}
if (outgoingTurns.isCandidatesAngleValid)
- sort(outgoingTurns.candidates.begin(), outgoingTurns.candidates.end(), my::LessBy(&TurnCandidate::angle));
+ sort(outgoingTurns.candidates.begin(), outgoingTurns.candidates.end(), my::LessBy(&TurnCandidate::m_angle));
}
void BicycleDirectionsEngine::GetEdges(RoadGraphBase const & graph, Junction const & currJunction,