Skip to content

Commit

Permalink
don't prefix twice
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Aug 1, 2022
1 parent 8573e80 commit b15bb90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/matsim/contrib/gtfs/GtfsConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ private TransitRoute findOrAddTransitRoute(TransitLine tl, Route route, List<Tra
return tr;
}
}
Id<TransitRoute> routeId = Id.create(prefix + tl.getId().toString() + "_" + tl.getRoutes().size(), TransitRoute.class);

// no prefix needed because already included in transit line
Id<TransitRoute> routeId = Id.create(tl.getId().toString() + "_" + tl.getRoutes().size(), TransitRoute.class);

RouteType routeType = RouteType.getRouteTypes().get(route.route_type);
if (routeType == null) {
Expand Down

0 comments on commit b15bb90

Please sign in to comment.