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:
Diffstat (limited to 'openlr/paths_connector.cpp')
-rw-r--r--openlr/paths_connector.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/openlr/paths_connector.cpp b/openlr/paths_connector.cpp
index 0052fcaad0..57a9c46f35 100644
--- a/openlr/paths_connector.cpp
+++ b/openlr/paths_connector.cpp
@@ -196,6 +196,11 @@ bool PathsConnector::FindShortestPath(Graph::Edge const & from, Graph::Edge cons
{
// TODO(mgsergio): Use frc to filter edges.
+ // Only start and/or end of the route can be fake.
+ // Routes made only of fake edges are no used to us.
+ if (u.IsFake() && e.IsFake())
+ continue;
+
auto const it = scores.find(e);
auto const eScore = us + EdgeLength(e);
if (it == end(scores) || it->second > eScore)