Skip to content

Commit

Permalink
revert change explicitely #1313
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Apr 4, 2018
1 parent 98b3658 commit 1092576
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -319,6 +319,8 @@ public static GraphHopperStorage createOrLoad(GHDirectory directory, EncodingMan
throw new RuntimeException(e);
}
}
new PrepareRoutingSubnetworks(graphHopperStorage, Collections.singletonList(ptFlagEncoder)).doWork();

int id = 0;
for (String gtfsFile : gtfsFiles) {
try {
Expand All @@ -339,10 +341,6 @@ public static GraphHopperStorage createOrLoad(GHDirectory directory, EncodingMan
for (int i = 0; i < id; i++) {
new GtfsReader("gtfs_" + i, graphHopperStorage, gtfsStorage, ptFlagEncoder, walkNetworkIndex).readGraph();
}
// This currently needs to happen as the last step, since we cannot add new nodes after this step.
// This means that disconnected parts of the transit network are removed as well.
// If we don't want that, we need to think of something.
new PrepareRoutingSubnetworks(graphHopperStorage, Collections.singletonList(ptFlagEncoder)).doWork();
graphHopperStorage.flush();
return graphHopperStorage;
}
Expand Down

0 comments on commit 1092576

Please sign in to comment.