Skip to content

Commit

Permalink
Add missing check during inbound transfers creation that lead to miss…
Browse files Browse the repository at this point in the history
…ing transfer when transfers.txt file is present.
  • Loading branch information
Mathieu St-Pierre authored and michaz committed Jan 23, 2020
1 parent be221a5 commit 60e6bc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ private void insertInboundTransfers(String fromStopId, String from_route_id, int
while (i.next()) {
if (i.get(ptEncodedValues.getTypeEnc()) == GtfsStorage.EdgeType.EXIT_PT) {
GtfsStorageI.PlatformDescriptor routeId = gtfsStorage.getRoutes().get(i.getEdge());
if (from_route_id == null || GtfsStorageI.PlatformDescriptor.route(from_route_id).equals(routeId)) {
if (from_route_id == null || routeId instanceof GtfsStorageI.RouteTypePlatform || GtfsStorageI.PlatformDescriptor.route(from_route_id).equals(routeId)) {
EdgeIterator j = graph.createEdgeExplorer().setBaseNode(i.getAdjNode());
while (j.next()) {
if (j.get(ptEncodedValues.getTypeEnc()) == GtfsStorage.EdgeType.LEAVE_TIME_EXPANDED_NETWORK) {
Expand Down

0 comments on commit 60e6bc2

Please sign in to comment.