public class TripPattern extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
int |
directionId |
PickDropType[] |
dropoffs |
boolean |
hasFrequencies
does this trip pattern have any frequency trips
|
boolean |
hasSchedules
does this trip pattern have any scheduled trips
|
int |
originalId
This is the ID of this trip pattern _in the original transport network_.
|
PickDropType[] |
pickups |
String |
routeId |
int |
routeIndex
index of this route in TransitLayer data.
|
BitSet |
servicesActive |
com.vividsolutions.jts.geom.LineString |
shape
GTFS shape for this pattern.
|
int[] |
stops |
float[] |
stopShapeFraction
How far along that segment it is
|
int[] |
stopShapeSegment
What segment each stop is in
|
List<TripSchedule> |
tripSchedules |
BitSet |
wheelchairAccessible |
Constructor and Description |
---|
TripPattern(String routeId,
Iterable<com.conveyal.gtfs.model.StopTime> stopTimes,
gnu.trove.map.TObjectIntMap<String> indexForUnscopedStopId) |
TripPattern(gnu.trove.list.TIntList intStopIds)
Create a TripPattern based only on a list of internal integer stop IDs.
|
Modifier and Type | Method and Description |
---|---|
void |
addTrip(TripSchedule tripSchedule) |
TripPattern |
clone() |
boolean |
containsNoTrips(Set<String> tripIds) |
List<com.vividsolutions.jts.geom.LineString> |
getHopGeometries(TransitLayer transitLayer) |
void |
setOrVerifyDirection(int directionId) |
String |
toString() |
String |
toStringDetailed(TransitLayer transitLayer) |
public int originalId
public String routeId
public int directionId
public int[] stops
public PickDropType[] pickups
public PickDropType[] dropoffs
public BitSet wheelchairAccessible
public List<TripSchedule> tripSchedules
public com.vividsolutions.jts.geom.LineString shape
public int[] stopShapeSegment
public float[] stopShapeFraction
public boolean hasFrequencies
public boolean hasSchedules
public BitSet servicesActive
public int routeIndex
public TripPattern(gnu.trove.list.TIntList intStopIds)
public void addTrip(TripSchedule tripSchedule)
public void setOrVerifyDirection(int directionId)
public TripPattern clone()
public String toStringDetailed(TransitLayer transitLayer)
public boolean containsNoTrips(Set<String> tripIds)
public List<com.vividsolutions.jts.geom.LineString> getHopGeometries(TransitLayer transitLayer)
transitLayer
- to allow lookup of stop locations when the tripPattern has no shape.Copyright © 2019. All rights reserved.