Skip to content

Commit

Permalink
ignore service links for counts matching
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Nov 5, 2024
1 parent 4bb1fad commit 3b1ee1b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ private void matchWithNetwork(Path network) throws TransformException, IOExcepti
{
Network unfiltered = NetworkUtils.readNetwork(network.toString());
NetworkFilterManager manager = new NetworkFilterManager(unfiltered, new NetworkConfigGroup());

// Some links can not be matched
manager.addLinkFilter(l -> !l.getId().toString().startsWith("pt_"));
manager.addLinkFilter(l -> !NetworkUtils.getHighwayType(l).equals("service"));

net = manager.applyFilters();
}
Expand Down

0 comments on commit 3b1ee1b

Please sign in to comment.