
org.opentripplanner.graph_builder.issues.TripDegenerate 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.graph_builder.issues;
import org.opentripplanner.graph_builder.DataImportIssue;
import org.opentripplanner.transit.model.timetable.Trip;
public record TripDegenerate(Trip trip) implements DataImportIssue {
public static final String FMT =
"Trip %s has fewer than two stops. " +
"We will not use it for routing. This is probably an error in your data";
@Override
public String getMessage() {
return String.format(FMT, trip);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy