All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.conveyal.gtfs.error.DuplicateStopError Maven / Gradle / Ivy

Go to download

A library to load and index GTFS feeds of arbitrary size using disk-backed storage

There is a newer version: 6.2.0
Show newest version
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