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-05-11 13:29:24 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-05-19 16:21:47 +0300
commite26af8f1f4999b7acf5e44f5c71c184b1ccb08ef (patch)
tree1a87ee14ac6e33d901a93445c1ef3e7777c9e3dd /indexer/ftypes_matcher.cpp
parente2c28dbc22eceb786fb21ec3300c8e47509a683f (diff)
[bicycle routing] Adapting car turn generator for bicycle turn generation.
Diffstat (limited to 'indexer/ftypes_matcher.cpp')
-rw-r--r--indexer/ftypes_matcher.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp
index 0b73615b56..7e18e5d3c9 100644
--- a/indexer/ftypes_matcher.cpp
+++ b/indexer/ftypes_matcher.cpp
@@ -409,6 +409,8 @@ string DebugPrint(HighwayClass const cls)
out << "LivingStreet";
case HighwayClass::Service:
out << "Service";
+ case HighwayClass::Pedestrian:
+ out << "Pedestrian";
case HighwayClass::Count:
out << "Count";
default:
@@ -436,8 +438,16 @@ HighwayClass GetHighwayClass(feature::TypesHolder const & types)
{HighwayClass::LivingStreet, c.GetTypeByPath({"highway", "unclassified"})},
{HighwayClass::LivingStreet, c.GetTypeByPath({"highway", "residential"})},
{HighwayClass::LivingStreet, c.GetTypeByPath({"highway", "living_street"})},
+ {HighwayClass::LivingStreet, c.GetTypeByPath({"highway", "road"})},
{HighwayClass::Service, c.GetTypeByPath({"highway", "service"})},
- {HighwayClass::Service, c.GetTypeByPath({"highway", "track"})}};
+ {HighwayClass::Service, c.GetTypeByPath({"highway", "track"})},
+ {HighwayClass::Pedestrian, c.GetTypeByPath({"highway", "pedestrian"})},
+ {HighwayClass::Pedestrian, c.GetTypeByPath({"highway", "footway"})},
+ {HighwayClass::Pedestrian, c.GetTypeByPath({"highway", "bridleway"})},
+ {HighwayClass::Pedestrian, c.GetTypeByPath({"highway", "steps"})},
+ {HighwayClass::Pedestrian, c.GetTypeByPath({"highway", "cycleway"})},
+ {HighwayClass::Pedestrian, c.GetTypeByPath({"highway", "path"})},
+ };
uint8_t const kTruncLevel = 2;
for (auto t : types)