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:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2019-11-29 17:57:14 +0300
committermesozoic-drones <mesozoic.drones@gmail.com>2019-12-02 16:37:36 +0300
commit3e4e9d022b30a1cfb7ee7784b778c4f0462313b3 (patch)
treebf611d6a83662e227535d108db52371ca2239e1b /routing
parentf1e7647eb6758ec37a97e52663f6d33e2a87402a (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.cpp8
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);