
org.opentripplanner.ext.vehicleparking.noi.NoiUpdaterParameters 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
The newest version!
package org.opentripplanner.ext.vehicleparking.noi;
import static org.opentripplanner.updater.vehicle_parking.VehicleParkingUpdaterParameters.UpdateType.FULL;
import java.net.URI;
import java.time.Duration;
import org.opentripplanner.updater.spi.HttpHeaders;
import org.opentripplanner.updater.vehicle_parking.VehicleParkingSourceType;
import org.opentripplanner.updater.vehicle_parking.VehicleParkingUpdaterParameters;
/**
* Class that extends {@link VehicleParkingUpdaterParameters} with parameters required by {@link
* NoiUpdater}.
*/
public record NoiUpdaterParameters(
String configRef,
URI url,
String feedId,
Duration frequency,
HttpHeaders httpHeaders
)
implements VehicleParkingUpdaterParameters {
@Override
public VehicleParkingSourceType sourceType() {
return VehicleParkingSourceType.NOI_OPEN_DATA_HUB;
}
@Override
public UpdateType updateType() {
return FULL;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy