com.conveyal.gtfs.error.DuplicateStopError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gtfs-lib Show documentation
Show all versions of gtfs-lib Show documentation
A library to load and index GTFS feeds of arbitrary size using disk-backed storage
package com.conveyal.gtfs.error;
import com.conveyal.gtfs.validator.model.DuplicateStops;
import java.io.Serializable;
/** Indicates that a stop exists more than once in the feed. */
public class DuplicateStopError extends GTFSError implements Serializable {
public static final long serialVersionUID = 1L;
private final String message;
public final DuplicateStops duplicateStop;
public DuplicateStopError(DuplicateStops duplicateStop) {
super("stop", duplicateStop.getDuplicatedStop().sourceFileLine, "stop_lat,stop_lon", duplicateStop.getDuplicatedStop().stop_id);
this.message = duplicateStop.toString();
this.duplicateStop = duplicateStop;
}
@Override public String getMessage() {
return message;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy