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:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-08-06 10:48:17 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:59:22 +0300
commit3b61add6ed3ceca03640f3440af2bdaf99e99d78 (patch)
tree1850b61de6fae95df72bba2ebf79557cacd5813e /map/framework.cpp
parent389d00224b3cd9cf903126be54f6bb65699676d6 (diff)
PR fixes
Diffstat (limited to 'map/framework.cpp')
-rw-r--r--map/framework.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 11dcf1b126..ec47b32e3e 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2326,14 +2326,16 @@ RouterType Framework::GetBestRouter(m2::PointD const & startPoint, m2::PointD co
return RouterType::Pedestrian;
else
{
- // Return on short calls the vehicle router flag only if we are already have routing files.
+ // Return on a short distance the vehicle router flag only if we are already have routing files.
auto countryFileGetter = [this](m2::PointD const & p)
{
return GetSearchEngine()->GetCountryFile(p);
};
if (!OsrmRouter::CheckRoutingAbility(startPoint, finalPoint, countryFileGetter,
&m_model.GetIndex()))
+ {
return RouterType::Pedestrian;
+ }
}
}
return RouterType::Vehicle;