
org.opentripplanner.ext.vehicleparking.hslpark.HslParkUpdaterParameters 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.hslpark;
import static org.opentripplanner.updater.vehicle_parking.VehicleParkingUpdaterParameters.UpdateType.FULL;
import java.time.Duration;
import java.time.ZoneId;
import org.opentripplanner.updater.vehicle_parking.VehicleParkingSourceType;
import org.opentripplanner.updater.vehicle_parking.VehicleParkingUpdaterParameters;
/**
* Class that extends {@link VehicleParkingUpdaterParameters} with parameters required by {@link
* HslParkUpdater}.
*/
public record HslParkUpdaterParameters(
String configRef,
int facilitiesFrequencySec,
String facilitiesUrl,
String feedId,
VehicleParkingSourceType sourceType,
int utilizationsFrequencySec,
String utilizationsUrl,
ZoneId timeZone,
String hubsUrl
)
implements VehicleParkingUpdaterParameters {
@Override
public Duration frequency() {
return Duration.ofSeconds(utilizationsFrequencySec);
}
@Override
public UpdateType updateType() {
return FULL;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy