com.conveyal.gtfs.model.PatternStop 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.model;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* A pattern stop represents generalized information about a stop visited by a pattern, i.e. a collection of trips that
* all visit the same stops in the same sequence. Some of these characteristics, e.g., stop ID, stop sequence, pickup
* type, and drop off type, help determine a unique pattern. Others (default dwell/travel time, timepoint, and shape dist
* traveled) are specific to the editor and usually based on values from the first trip encountered in a feed for a
* given pattern.
*/
public class PatternStop extends Entity {
private static final long serialVersionUID = 1L;
public String pattern_id;
public int stop_sequence;
public String stop_id;
// FIXME: Should we be storing default travel and dwell times here?
public int default_travel_time;
public int default_dwell_time;
public double shape_dist_traveled;
public int pickup_type;
public int drop_off_type;
public int timepoint;
public PatternStop () {}
/**
* Sets the parameters for a prepared statement following the parameter order defined in
* {@link com.conveyal.gtfs.loader.Table#PATTERN_STOP}. JDBC prepared statement parameters use a one-based index.
*/
@Override
public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException {
// FIXME
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy