public class TransitLayer extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
double |
centerLat |
double |
centerLon |
StreetLayer |
linkedStreetLayer
A transitLayer can only be linked to one StreetLayer, otherwise the street indexes for the transit stops would
be ambiguous.
|
int |
nTrips |
List<gnu.trove.list.TIntList> |
patternsForStop |
List<com.conveyal.gtfs.model.Service> |
services |
List<com.conveyal.gtfs.model.Stop> |
stopForIndex |
gnu.trove.map.TIntIntMap |
stopForStreetVertex |
List<String> |
stopIdForIndex |
gnu.trove.map.TIntIntMap[] |
stopTree
this is the result of running a search from every stop in the graph, map from stop vertex index to (vertex index, distance)
|
gnu.trove.list.TIntList |
streetVertexForStop |
List<gnu.trove.list.TIntList> |
transfersForStop |
List<TripPattern> |
tripPatterns |
static int |
TYPICAL_NUMBER_OF_STOPS_PER_TRIP |
Constructor and Description |
---|
TransitLayer() |
Modifier and Type | Method and Description |
---|---|
void |
buildStopTree() |
static TransitLayer |
fromGtfs(String file) |
BitSet |
getActiveServicesForDate(org.joda.time.LocalDate date) |
int |
getStopCount() |
void |
loadFromGtfs(com.conveyal.gtfs.GTFSFeed gtfs)
Seems kind of hackish to pass the street layer in.
|
void |
rebuildTransientIndexes()
(Re-)build transient indexes of this TripPattern, connecting stops to patterns etc.
|
public static final int TYPICAL_NUMBER_OF_STOPS_PER_TRIP
public List<TripPattern> tripPatterns
public gnu.trove.list.TIntList streetVertexForStop
public transient gnu.trove.map.TIntIntMap stopForStreetVertex
public List<gnu.trove.list.TIntList> transfersForStop
public List<gnu.trove.list.TIntList> patternsForStop
public List<com.conveyal.gtfs.model.Service> services
public transient List<com.conveyal.gtfs.model.Stop> stopForIndex
public double centerLon
public double centerLat
public int nTrips
public transient gnu.trove.map.TIntIntMap[] stopTree
public StreetLayer linkedStreetLayer
public void loadFromGtfs(com.conveyal.gtfs.GTFSFeed gtfs)
public void rebuildTransientIndexes()
public void buildStopTree()
public static TransitLayer fromGtfs(String file)
public int getStopCount()
public BitSet getActiveServicesForDate(org.joda.time.LocalDate date)
Copyright © 2015. All rights reserved.