From ef5be5c52a4d13cc12c87c817c75b487171d4552 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Tue, 12 Sep 2017 08:56:47 +0300 Subject: Ingoring one way feature direction for pedestrian routing. --- routing/index_router.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routing/index_router.cpp b/routing/index_router.cpp index 7dc07d2729..b65691c984 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -298,7 +298,9 @@ IndexRouter::IndexRouter(VehicleType vehicleType, bool loadAltitudes, TCountryFi , m_numMwmTree(move(numMwmTree)) , m_trafficStash(CreateTrafficStash(m_vehicleType, m_numMwmIds, trafficCache)) , m_indexManager(countryFileFn, m_index) - , m_roadGraph(m_index, IRoadGraph::Mode::ObeyOnewayTag, m_vehicleModelFactory) + , m_roadGraph(m_index, vehicleType == VehicleType::Pedestrian ? IRoadGraph::Mode::IgnoreOnewayTag + : IRoadGraph::Mode::ObeyOnewayTag, + m_vehicleModelFactory) , m_estimator(EdgeEstimator::Create(m_vehicleType, CalcMaxSpeed(*m_numMwmIds, *m_vehicleModelFactory), m_trafficStash)) , m_directionsEngine(CreateDirectionsEngine(m_vehicleType, m_numMwmIds, m_index)) { -- cgit v1.2.3