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/index_router.cpp')
-rw-r--r--routing/index_router.cpp4
1 files changed, 3 insertions, 1 deletions
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))
{