Skip to content

Commit

Permalink
Restrict street <> footway connections to the same level (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch committed Mar 8, 2024
1 parent 356a339 commit 20e8f98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/ppr/routing/label.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ struct label {
if (edge_.in_area() && e.in_area()) {
return false;
}

auto const et1 = edge_.edge_info_->type_;
auto const et2 = e.edge_info_->type_;
if ((et1 == edge_type::STREET && et2 == edge_type::FOOTWAY) ||
(et1 == edge_type::FOOTWAY && et2 == edge_type::STREET)) {
return false;
}
}

l.pred_ = this;
Expand Down

0 comments on commit 20e8f98

Please sign in to comment.