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>2017-09-12 08:56:47 +0300
committerIlya Zverev <ilya@zverev.info>2017-09-14 17:12:55 +0300
commitef5be5c52a4d13cc12c87c817c75b487171d4552 (patch)
tree963e9a0a336f83e707f2877b1d28f42e37e884ce
parent86d009ce2bb1a34aef6242569a3badb692da0286 (diff)
Ingoring one way feature direction for pedestrian routing.
-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))
{