diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2019-11-29 17:57:14 +0300 |
---|---|---|
committer | mesozoic-drones <mesozoic.drones@gmail.com> | 2019-12-02 16:37:36 +0300 |
commit | 3e4e9d022b30a1cfb7ee7784b778c4f0462313b3 (patch) | |
tree | bf611d6a83662e227535d108db52371ca2239e1b /routing | |
parent | f1e7647eb6758ec37a97e52663f6d33e2a87402a (diff) |
[routing] Adding highway-construction to HighwayClasses because it's possible that adjacent to route roads have such type.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/bicycle_directions.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/routing/bicycle_directions.cpp b/routing/bicycle_directions.cpp index 9a8798dadc..364619a362 100644 --- a/routing/bicycle_directions.cpp +++ b/routing/bicycle_directions.cpp @@ -266,8 +266,12 @@ void BicycleDirectionsEngine::GetSegmentRangeAndAdjacentEdges( continue; auto const highwayClass = ftypes::GetHighwayClass(feature::TypesHolder(*ft)); - ASSERT_NOT_EQUAL(highwayClass, ftypes::HighwayClass::Error, ()); - ASSERT_NOT_EQUAL(highwayClass, ftypes::HighwayClass::Undefined, ()); + ASSERT_NOT_EQUAL( + highwayClass, ftypes::HighwayClass::Error, + (mercator::ToLatLon(edge.GetStartPoint()), mercator::ToLatLon(edge.GetEndPoint()))); + ASSERT_NOT_EQUAL( + highwayClass, ftypes::HighwayClass::Undefined, + (mercator::ToLatLon(edge.GetStartPoint()), mercator::ToLatLon(edge.GetEndPoint()))); bool const isLink = ftypes::IsLinkChecker::Instance()(*ft); |