org.opentripplanner.standalone.config.updaters.GtfsRealtimeAlertsUpdaterConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.standalone.config.updaters;
import org.opentripplanner.standalone.config.NodeAdapter;
import org.opentripplanner.updater.alerts.GtfsRealtimeAlertsUpdaterParameters;
public class GtfsRealtimeAlertsUpdaterConfig {
public static GtfsRealtimeAlertsUpdaterParameters create(String configRef, NodeAdapter c) {
return new GtfsRealtimeAlertsUpdaterParameters(
configRef,
c.asText("feedId", null),
c.asText("url"),
c.asInt("earlyStartSec", 0),
c.asBoolean("fuzzyTripMatching", false),
c.asInt("frequencySec", 60)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy