com.conveyal.gtfs.error.MisplacedStopError 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.model.Stop;
import com.conveyal.gtfs.validator.model.Priority;
import java.io.Serializable;
/**
* Created by landon on 5/11/16.
*/
public class MisplacedStopError extends GTFSError implements Serializable {
public static final long serialVersionUID = 1L;
public final Priority priority;
public final Stop stop;
public MisplacedStopError(String affectedEntityId, long line, Stop stop) {
super("stops", line, "stop_id", affectedEntityId);
this.priority = Priority.HIGH;
this.stop = stop;
}
@Override public String getMessage() {
return String.format("Stop Id %s is misplaced.", affectedEntityId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy