Class InterpolateStopTimesFromTimePointsStrategy
java.lang.Object
org.onebusaway.gtfs_transformer.updates.InterpolateStopTimesFromTimePointsStrategy
- All Implemented Interfaces:
GtfsTransformStrategy
public class InterpolateStopTimesFromTimePointsStrategy
extends Object
implements GtfsTransformStrategy
Delete all stop times (arrival and departure) that are not timepoints
and re-interpolate those times with second precision.
For GTFS that has stops close together but also has minute precision on
arrival/departure times. These stops travel distance over no time which
can cause issues with downstream systems.
Inspired by and ported from onebusaway-application-modules
StopTimeEntriesFactory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidrun(TransformContext context, GtfsMutableRelationalDao dao) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.onebusaway.gtfs_transformer.services.GtfsTransformStrategy
updateReadSchema, updateWriteSchema
-
Constructor Details
-
InterpolateStopTimesFromTimePointsStrategy
public InterpolateStopTimesFromTimePointsStrategy()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceGtfsTransformStrategy
-
run
- Specified by:
runin interfaceGtfsTransformStrategy
-