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 Constructor Description InterpolateStopTimesFromTimePointsStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()voidrun(TransformContext context, GtfsMutableRelationalDao dao)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.onebusaway.gtfs_transformer.services.GtfsTransformStrategy
updateReadSchema, updateWriteSchema
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceGtfsTransformStrategy
-
run
public void run(TransformContext context, GtfsMutableRelationalDao dao)
- Specified by:
runin interfaceGtfsTransformStrategy
-
-