public class StopPathProcessor
extends java.lang.Object
Constructor and Description |
---|
StopPathProcessor(java.util.Collection<GtfsShape> gtfsShapes,
java.util.Map<java.lang.String,Stop> stopsMap,
java.util.Collection<TripPattern> tripPatterns,
double offsetDistance,
double maxStopToPathDistance,
double maxDistanceForEliminatingVertices,
boolean trimPathBeforeFirstStopOfTrip)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
processPathSegments()
Determines the path segments for each trip pattern.
|
public StopPathProcessor(java.util.Collection<GtfsShape> gtfsShapes, java.util.Map<java.lang.String,Stop> stopsMap, java.util.Collection<TripPattern> tripPatterns, double offsetDistance, double maxStopToPathDistance, double maxDistanceForEliminatingVertices, boolean trimPathBeforeFirstStopOfTrip)
gtfsShapes
- stopsMap
- tripPatterns
- offsetDistance
- How much to the right the stopPaths should be offset. If
negative then the stopPaths are offset to the left. If 0.0
then of course the stopPaths are not offset at all.maxStopToPathDistance
- maxDistanceForEliminatingVertices
- For getting rid of really small segmentsIndicates
- that shouldn't use the shape before the first stop of the
trip. This can be useful because sometimes a single shape is
used for multiple trip patterns or the shapes simply have some
problem points at the beginning (like sfmta 21-Hayes.public void processPathSegments()