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 <bykoianko@gmail.com>2017-03-01 17:46:26 +0300
committerGitHub <noreply@github.com>2017-03-01 17:46:26 +0300
commitaaa7e9c66592beaeb02dce8102f408eba0ae5dd9 (patch)
tree04b7736511810b772c0cc1350784b59adcbacdfc /routing/car_router.hpp
parentae10370e128b98935b37e188f4e9279795c0bb3a (diff)
parent316268660e47c5b21b0376d7081b5d500ccba53c (diff)
Merge pull request #5468 from dobriy-eeh/cross-mwm-routingbeta-657
[routing] Enable cross mwm index router
Diffstat (limited to 'routing/car_router.hpp')
-rw-r--r--routing/car_router.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/routing/car_router.hpp b/routing/car_router.hpp
index 4a62046391..d32fc9252a 100644
--- a/routing/car_router.hpp
+++ b/routing/car_router.hpp
@@ -1,11 +1,11 @@
#pragma once
+#include "routing/index_router.hpp"
#include "routing/osrm_data_facade.hpp"
#include "routing/osrm_engine.hpp"
#include "routing/route.hpp"
#include "routing/router.hpp"
#include "routing/routing_mapping.hpp"
-#include "routing/single_mwm_router.hpp"
#include "std/unique_ptr.hpp"
#include "std/vector.hpp"
@@ -35,7 +35,7 @@ public:
typedef vector<double> GeomTurnCandidateT;
CarRouter(Index & index, TCountryFileFn const & countryFileFn,
- unique_ptr<SingleMwmRouter> localRouter);
+ unique_ptr<IndexRouter> localRouter);
virtual string GetName() const override;
@@ -85,6 +85,7 @@ private:
// @TODO(bykoianko) When routing section implementation is merged to master
// this method should be moved to routing loader.
bool DoesEdgeIndexExist(Index::MwmId const & mwmId);
+ bool AllMwmsHaveRoutingIndex() const;
/*!
* \brief Builds a route within one mwm using A* if edge index section is available and osrm
@@ -115,6 +116,6 @@ private:
RoutingIndexManager m_indexManager;
- unique_ptr<SingleMwmRouter> m_router;
+ unique_ptr<IndexRouter> m_router;
};
} // namespace routing