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
path: root/map
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2016-10-11 16:09:41 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2016-10-11 16:09:41 +0300
commit7e729c2ceec5ecc0b245fb709a04013897c39dd7 (patch)
tree3a125ef47b1a14807e296cd2a1f8eabb37c9a7ea /map
parent53da4259b42ee24fc5c662514cb533529939ad1b (diff)
review fixes
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp11
-rw-r--r--map/framework.hpp3
2 files changed, 10 insertions, 4 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index daff132424..4f724ff9c3 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2380,8 +2380,10 @@ void Framework::InsertRoute(Route const & route)
vector<double> turns;
if (m_currentRouterType == RouterType::Vehicle || m_currentRouterType == RouterType::Bicycle ||
- m_currentRouterType == RouterType::Uber)
+ m_currentRouterType == RouterType::Taxi)
+ {
route.GetTurnsDistances(turns);
+ }
df::ColorConstant routeColor = df::Route;
df::RoutePattern pattern;
@@ -2481,8 +2483,9 @@ RouterType Framework::GetBestRouter(m2::PointD const & startPoint, m2::PointD co
case RouterType::Pedestrian:
case RouterType::Bicycle:
return lastUsedRouter;
+ case RouterType::Taxi:
+ ASSERT(false, ("GetLastUsedRouter sould not to return RouterType::Taxi"));
case RouterType::Vehicle:
- case RouterType::Uber:
; // fall through
}
@@ -2559,10 +2562,10 @@ bool Framework::LoadAutoZoom()
void Framework::AllowAutoZoom(bool allowAutoZoom)
{
bool const isPedestrianRoute = m_currentRouterType == RouterType::Pedestrian;
- bool const isUberRoute = m_currentRouterType == RouterType::Uber;
+ bool const isTaxiRoute = m_currentRouterType == RouterType::Taxi;
CallDrapeFunction(bind(&df::DrapeEngine::AllowAutoZoom, _1,
- allowAutoZoom && !isPedestrianRoute && !isUberRoute));
+ allowAutoZoom && !isPedestrianRoute && !isTaxiRoute));
}
void Framework::SaveAutoZoom(bool allowAutoZoom)
diff --git a/map/framework.hpp b/map/framework.hpp
index 4ce8263666..961794dd16 100644
--- a/map/framework.hpp
+++ b/map/framework.hpp
@@ -737,6 +737,9 @@ public:
/// GenerateTurnNotifications shall be called by the client when a new position is available.
inline void GenerateTurnNotifications(vector<string> & turnNotifications)
{
+ if (m_currentRouterType == routing::RouterType::Taxi)
+ return;
+
return m_routingSession.GenerateTurnNotifications(turnNotifications);
}