All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.standalone.config.updaters.WebsocketGtfsRealtimeUpdaterConfig Maven / Gradle / Ivy

package org.opentripplanner.standalone.config.updaters;

import org.opentripplanner.standalone.config.NodeAdapter;
import org.opentripplanner.updater.stoptime.WebsocketGtfsRealtimeUpdaterParameters;

public class WebsocketGtfsRealtimeUpdaterConfig {
  public static WebsocketGtfsRealtimeUpdaterParameters create(String configRef, NodeAdapter c) {
    return new WebsocketGtfsRealtimeUpdaterParameters(
        configRef,
        c.asText("feedId", null),
        c.asText("url", null),
        c.asInt("reconnectPeriodSec", 60)
    );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy