fixes #1041, some only_ turn restrictions are inverted under certain conditions
This commit is contained in:
parent
621a5a86a0
commit
4e6bdf28cc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user