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-14 16:49:35 +0300
committerIlya Zverev <ilya@zverev.info>2017-09-14 17:12:55 +0300
commit666bf71c29afd56ad285f8d0fd882fc1ea79224a (patch)
tree480acf0fce677f92476837c0e2352a69e60d33db
parentef5be5c52a4d13cc12c87c817c75b487171d4552 (diff)
-rw-r--r--routing/index_router.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/routing/index_router.cpp b/routing/index_router.cpp
index b65691c984..cf23fd57bf 100644
--- a/routing/index_router.cpp
+++ b/routing/index_router.cpp
@@ -283,10 +283,10 @@ double IndexRouter::BestEdgeComparator::GetSquaredDist(Edge const & edge) const
}
// IndexRouter ------------------------------------------------------------------------------------
-IndexRouter::IndexRouter(VehicleType vehicleType, bool loadAltitudes, TCountryFileFn const & countryFileFn,
- CourntryRectFn const & countryRectFn, shared_ptr<NumMwmIds> numMwmIds,
- unique_ptr<m4::Tree<NumMwmId>> numMwmTree, traffic::TrafficCache const & trafficCache,
- Index & index)
+IndexRouter::IndexRouter(VehicleType vehicleType, bool loadAltitudes,
+ TCountryFileFn const & countryFileFn, CourntryRectFn const & countryRectFn,
+ shared_ptr<NumMwmIds> numMwmIds, unique_ptr<m4::Tree<NumMwmId>> numMwmTree,
+ traffic::TrafficCache const & trafficCache, Index & index)
: m_vehicleType(vehicleType)
, m_loadAltitudes(loadAltitudes)
, m_name("astar-bidirectional-" + ToString(m_vehicleType))
@@ -298,10 +298,12 @@ 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, vehicleType == VehicleType::Pedestrian ? IRoadGraph::Mode::IgnoreOnewayTag
- : IRoadGraph::Mode::ObeyOnewayTag,
+ , 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_estimator(EdgeEstimator::Create(
+ m_vehicleType, CalcMaxSpeed(*m_numMwmIds, *m_vehicleModelFactory), m_trafficStash))
, m_directionsEngine(CreateDirectionsEngine(m_vehicleType, m_numMwmIds, m_index))
{
CHECK(!m_name.empty(), ());