diff --git a/src/main/java/org/opentripplanner/routing/impl/DefaultFareServiceFactory.java b/src/main/java/org/opentripplanner/routing/impl/DefaultFareServiceFactory.java index 9a25e1852ff..9a10176ac73 100644 --- a/src/main/java/org/opentripplanner/routing/impl/DefaultFareServiceFactory.java +++ b/src/main/java/org/opentripplanner/routing/impl/DefaultFareServiceFactory.java @@ -89,9 +89,6 @@ protected void fillFareRules(String agencyId, Collection fareAttr fareRule.addRouteOriginDestination(routeId.toString(), origin, destination); } else { fareRule.addRoute(routeId); - if (origin != null || destination != null) { - fareRule.addOriginDestination(origin, destination); - } } } else { if (origin != null || destination != null) { diff --git a/src/main/java/org/opentripplanner/routing/impl/HSLFareServiceImpl.java b/src/main/java/org/opentripplanner/routing/impl/HSLFareServiceImpl.java index 4bfd06ba68b..a8a7a02ee9f 100644 --- a/src/main/java/org/opentripplanner/routing/impl/HSLFareServiceImpl.java +++ b/src/main/java/org/opentripplanner/routing/impl/HSLFareServiceImpl.java @@ -113,7 +113,7 @@ but visit temporarily (maybe 1 stop only) an 'external' zone */ for (FareRuleSet ruleSet : fareRules) { String routeOriginDestination = String.valueOf(ride.route) + ", " + String.valueOf(ride.startZone) + ", " + String.valueOf(ride.endZone); boolean isSpecialRoute = false; - if(ruleSet.getRoutes().size() == 1 && !ruleSet.getRouteOriginDestinations().isEmpty() && ruleSet.getRouteOriginDestinations().toString().indexOf(routeOriginDestination) != -1) { + if(!ruleSet.getRouteOriginDestinations().isEmpty() && ruleSet.getRouteOriginDestinations().toString().indexOf(routeOriginDestination) != -1) { isSpecialRoute = true; } if(isSpecialRoute || (ruleSet.getRoutes().contains(ride.route) &&