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>2016-08-09 14:50:37 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-08-19 10:24:01 +0300
commit0f6e8ce99e50872d26d97bc0eeaba6e084a27739 (patch)
tree8f3bac5cec188a21abb62b06092085beb46d868d /routing/pedestrian_model.cpp
parent0784b028949f0d54aeaf22b3b13f0b687282d014 (diff)
Getting rid of returning zero speed while pedestrian and bicycle routing. Fixing routing along ferry.
Diffstat (limited to 'routing/pedestrian_model.cpp')
-rw-r--r--routing/pedestrian_model.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/routing/pedestrian_model.cpp b/routing/pedestrian_model.cpp
index 285ed91d38..a70576c3b7 100644
--- a/routing/pedestrian_model.cpp
+++ b/routing/pedestrian_model.cpp
@@ -626,11 +626,11 @@ void PedestrianModel::Init()
m_noFootType = classif().GetTypeByPath({ "hwtag", "nofoot" });
m_yesFootType = classif().GetTypeByPath(hwtagYesFoot);
- initializer_list<char const *> arr[] = {
- hwtagYesFoot, {"route", "ferry"}, {"man_made", "pier"},
+ vector<AdditionalRoadTags> additionalTags = {
+ { hwtagYesFoot, m_maxSpeedKMpH }, {{"route", "ferry"}, m_maxSpeedKMpH }, {{"man_made", "pier"}, 4.0 },
};
- SetAdditionalRoadTypes(classif(), arr, ARRAY_SIZE(arr));
+ SetAdditionalRoadTypes(classif(), additionalTags);
}
IVehicleModel::RoadAvailability PedestrianModel::GetRoadAvailability(feature::TypesHolder const & types) const