org.opentripplanner.graph_builder.issues.TripDuplicate 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.model.Trip;
public class TripDuplicate implements DataImportIssue {
public static final String FMT = "Possible GTFS feed error: Duplicate trip (skipping). " +
"New: %s Existing: %s";
final Trip newTrip;
final Trip existingTrip;
public TripDuplicate(Trip newTrip, Trip existingTrip){
this.newTrip = newTrip;
this.existingTrip = existingTrip;
}
@Override
public String getMessage() {
return String.format(FMT, newTrip, existingTrip);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy