Search in sources :

Example 1 with SiriFuzzyTripMatcher

use of org.opentripplanner.ext.siri.SiriFuzzyTripMatcher in project OpenTripPlanner by opentripplanner.

the class SiriSXUpdater method setup.

@Override
public void setup(Graph graph) {
    this.transitAlertService = new TransitAlertServiceImpl(graph);
    SiriFuzzyTripMatcher fuzzyTripMatcher = new SiriFuzzyTripMatcher(new RoutingService(graph));
    if (updateHandler == null) {
        updateHandler = new SiriAlertsUpdateHandler(feedId);
    }
    updateHandler.setEarlyStart(earlyStart);
    updateHandler.setTransitAlertService(transitAlertService);
    updateHandler.setSiriFuzzyTripMatcher(fuzzyTripMatcher);
}
Also used : RoutingService(org.opentripplanner.routing.RoutingService) SiriAlertsUpdateHandler(org.opentripplanner.ext.siri.SiriAlertsUpdateHandler) TransitAlertServiceImpl(org.opentripplanner.routing.impl.TransitAlertServiceImpl) SiriFuzzyTripMatcher(org.opentripplanner.ext.siri.SiriFuzzyTripMatcher)

Aggregations

SiriAlertsUpdateHandler (org.opentripplanner.ext.siri.SiriAlertsUpdateHandler)1 SiriFuzzyTripMatcher (org.opentripplanner.ext.siri.SiriFuzzyTripMatcher)1 RoutingService (org.opentripplanner.routing.RoutingService)1 TransitAlertServiceImpl (org.opentripplanner.routing.impl.TransitAlertServiceImpl)1