Class ShapeDirectionTransformStrategy
- java.lang.Object
-
- org.onebusaway.gtfs_transformer.updates.ShapeDirectionTransformStrategy
-
- All Implemented Interfaces:
GtfsTransformStrategy
public class ShapeDirectionTransformStrategy extends Object implements GtfsTransformStrategy
Fix use of a single shape for both directions of travel by creating a copy of the shape with its ShapePoints in reverse order, and applying that new shape to any trips which use the input shape in the 'wrong' direction.- Author:
- kurt
-
-
Constructor Summary
Constructors Constructor Description ShapeDirectionTransformStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()voidrun(TransformContext context, GtfsMutableRelationalDao dao)voidsetShapeDirection(String shapeDirection)voidsetShapeId(String shapeId)-
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
-
setShapeDirection
public void setShapeDirection(String shapeDirection)
-
setShapeId
public void setShapeId(String shapeId)
-
-