Permalink
Browse files

fixes #1041, some only_ turn restrictions are inverted under certain …

…conditions
  • Loading branch information...
1 parent 621a5a8 commit 4e6bdf28cccc92cf6bad1e0542d87dbc04aed81a @DennisOSRM DennisOSRM committed Jun 10, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 Contractor/EdgeBasedGraphFactory.cpp
@@ -309,7 +309,7 @@ void EdgeBasedGraphFactory::CompressGeometry()
}
// check if v is a via node for a turn restriction, i.e. a 'directed' barrier node
- if (m_restriction_map->IsNodeAViaNode(v))
+ if (m_restriction_map->IsViaNode(v))
{
continue;
}
@@ -608,6 +608,7 @@ EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(const std::string &original_edg
(to_node_of_only_restriction == SPECIAL_NODEID) &&
(w != to_node_of_only_restriction))
{
+ // We are at an only_-restriction but not at the right turn.
++restricted_turns_counter;
continue;
}

0 comments on commit 4e6bdf2

Please sign in to comment.